-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow not unique constraint name for postgres (#37)
- Loading branch information
Showing
5 changed files
with
59 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
-- Test case for https://github.com/KarnerTh/mermerd/issues/36 | ||
create table test_not_unique_constraint_name_a | ||
( | ||
id int primary key | ||
); | ||
create table test_not_unique_constraint_name_b | ||
( | ||
id int primary key | ||
); | ||
create table test_not_unique_constraint_name_c | ||
( | ||
id int primary key | ||
); | ||
|
||
alter table test_not_unique_constraint_name_b | ||
add constraint not_unique_constraint_name foreign key (id) references test_not_unique_constraint_name_a (id); | ||
alter table test_not_unique_constraint_name_c | ||
add constraint not_unique_constraint_name foreign key (id) references test_not_unique_constraint_name_a (id); |