Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(postgres): use explicit schema in table identifier when altering …
- Loading branch information
Showing
7 changed files
with
53 additions
and
56 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
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
22 changes: 11 additions & 11 deletions
22
tests/features/schema-generator/__snapshots__/comment-diffing.postgres.test.ts.snap
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,24 +1,24 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`comment diffing in postgres schema orm.schema updates comments 1`] = ` | ||
"comment on column "book"."id" is 'this is primary''s key'; | ||
comment on column "book"."name" is 'this is name of book'; | ||
comment on table "book" is 'this is book''s table'; | ||
exports[`comment diffing in postgres 1`] = ` | ||
"comment on column "foo"."book"."id" is 'this is primary''s key'; | ||
comment on column "foo"."book"."name" is 'this is name of book'; | ||
comment on table "foo"."book" is 'this is book''s table'; | ||
" | ||
`; | ||
|
||
exports[`comment diffing in postgres schema orm.schema updates comments 2`] = ` | ||
"comment on column "book"."id" is 'new comment'; | ||
comment on column "book"."name" is null; | ||
comment on table "book" is 'table comment'; | ||
exports[`comment diffing in postgres 2`] = ` | ||
"comment on column "foo"."book"."id" is 'new comment'; | ||
comment on column "foo"."book"."name" is null; | ||
comment on table "foo"."book" is 'table comment'; | ||
" | ||
`; | ||
|
||
exports[`comment diffing in postgres schema orm.schema updates comments 3`] = ` | ||
"comment on column "book"."id" is null; | ||
comment on table "book" is ''; | ||
exports[`comment diffing in postgres 3`] = ` | ||
"comment on column "foo"."book"."id" is null; | ||
comment on table "foo"."book" is ''; | ||
" | ||
`; |
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