Skip to content

Commit

Permalink
#396 added example for the issue #396
Browse files Browse the repository at this point in the history
  • Loading branch information
evassilyev committed Nov 4, 2023
1 parent ad3ee4f commit 6f4cdc2
Show file tree
Hide file tree
Showing 7 changed files with 195 additions and 0 deletions.
20 changes: 20 additions & 0 deletions _examples/a_bit_of_everything/postgres/asamefkname1.xo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions _examples/a_bit_of_everything/postgres/asamefkname2.xo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions _examples/a_bit_of_everything/postgres/xo.xo.dot

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 76 additions & 0 deletions _examples/a_bit_of_everything/postgres/xo.xo.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions _examples/a_bit_of_everything/postgres/xo.xo.sql

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions _examples/a_bit_of_everything/postgres/xo.xo.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions _examples/a_bit_of_everything/sql/postgres_schema.sql
Expand Up @@ -45,6 +45,17 @@ CREATE TABLE a_foreign_key_composite (
FOREIGN KEY (a_key1, a_key2) REFERENCES a_primary_composite (a_key1, a_key2)
);

-- tables with the same foreign key's name 'foreign_key_1'
-- case for issue #396
CREATE TABLE a_same_fk_name_1 (
a_fkey INTEGER CONSTRAINT foreign_key_1 REFERENCES a_primary (a_key)
);

CREATE TABLE a_same_fk_name_2 (
a_fkey INTEGER CONSTRAINT foreign_key_1 REFERENCES a_primary (a_key)
);


-- table with index
CREATE TABLE a_index (
a_key INTEGER
Expand Down

0 comments on commit 6f4cdc2

Please sign in to comment.