forked from apache/doris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat](Nereids): drop foreign key after dropping primary key that is …
…referenced by the foreign key (apache#30417)
- Loading branch information
Showing
5 changed files
with
101 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,25 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !show_constrait -- | ||
-- !add_primary -- | ||
pk PRIMARY KEY PRIMARY KEY (id) | ||
|
||
-- !add_unique -- | ||
uk UNIQUE UNIQUE (id) | ||
pk PRIMARY KEY PRIMARY KEY (id) | ||
|
||
-- !add_foreign -- | ||
uk UNIQUE UNIQUE (id) | ||
pk PRIMARY KEY PRIMARY KEY (id) | ||
fk2 FOREIGN KEY FOREIGN KEY (id) REFERENCES regression_test_nereids_syntax_p0.t2 (id) | ||
fk1 FOREIGN KEY FOREIGN KEY (id) REFERENCES regression_test_nereids_syntax_p0.t1 (id) | ||
fk1 FOREIGN KEY FOREIGN KEY (id) REFERENCES regression_test_nereids_syntax_p0.t2 (id) | ||
|
||
-- !drop_uk -- | ||
pk PRIMARY KEY PRIMARY KEY (id) | ||
fk1 FOREIGN KEY FOREIGN KEY (id) REFERENCES regression_test_nereids_syntax_p0.t2 (id) | ||
|
||
-- !drop_fk -- | ||
pk PRIMARY KEY PRIMARY KEY (id) | ||
|
||
-- !drop_pk -- | ||
|
||
-- !show_constrait -- | ||
-- !drop_fk_cascades -- | ||
pk PRIMARY KEY PRIMARY KEY (id) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters