MSCEWI2032
Columns were reordered.
This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.
Severity
Low
Description
One or more of the referenced columns inside the REFERENCES portion of the FOREIGN KEY were reordered to match the indexes (or positions) of the specified table.
Example Code
Input Code:
CREATE TABLE FK1(
COL1 INTEGER,
COL2 INTEGER,
COL3 INTEGER,
PRIMARY KEY (COL1, COL2))
PRIMARY INDEX (COL1, COL2, COL3);
CREATE TABLE FK2(
COL1 INTEGER,
COL2 INTEGER,
COL3 INTEGER,
-- The column references here require reordering.
FOREIGN KEY (COL1, COL2, COL3) REFERENCES FK1 (COL2, COL1, COL3)
);Output Code:
Recommendations
No additional user actions are required.
If you need more support, you can email us at [email protected]
Last updated
