-
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.
- Loading branch information
1 parent
db2b932
commit 95bf3ec
Showing
4 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
pkg/schema/pg/testdata/TestPostgres_AddColumn/with_timestamps.snap.txt
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,2 @@ | ||
ALTER TABLE tst_pg_add_column_12.articles ADD "created_at" TIMESTAMP(6) DEFAULT now() NOT NULL | ||
ALTER TABLE tst_pg_add_column_12.articles ADD "updated_at" TIMESTAMP(6) DEFAULT now() NOT NULL |
1 change: 1 addition & 0 deletions
1
pkg/schema/pg/testdata/TestPostgres_ChangeColumn/change_column_type_with_using.snap.txt
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 @@ | ||
ALTER TABLE tst_pg_change_column_1.articles ALTER COLUMN name TYPE INTEGER USING length(name) |
1 change: 1 addition & 0 deletions
1
pkg/schema/pg/testdata/TestPostgres_ChangeColumn/simple_change.snap.txt
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 @@ | ||
ALTER TABLE tst_pg_change_column_0.articles ALTER COLUMN name TYPE varchar(255) |
4 changes: 4 additions & 0 deletions
4
pkg/schema/pg/testdata/TestPostgres_RenameTable/rename_table.snap.txt
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,4 @@ | ||
CREATE TABLE tst_pg_rename_table_0.articles ( | ||
"id" SERIAL NOT NULL PRIMARY KEY | ||
) | ||
ALTER TABLE tst_pg_rename_table_0.articles RENAME TO posts |