-
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
8bfc02a
commit 474424d
Showing
9 changed files
with
21 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE TYPE "tst_pg_add_enum_0"."status" AS ENUM ('active', 'inactive') |
1 change: 1 addition & 0 deletions
1
pkg/schema/pg/testdata/TestPostgres_AddEnum/add_enum_with_no_values.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 @@ | ||
CREATE TYPE "tst_pg_add_enum_1"."status" AS ENUM () |
2 changes: 2 additions & 0 deletions
2
pkg/schema/pg/testdata/TestPostgres_AddEnumValue/add_enum_value.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 @@ | ||
CREATE TYPE "tst_pg_add_enum_value_0"."status" AS ENUM ('active', 'inactive') | ||
ALTER TYPE "tst_pg_add_enum_value_0"."status" ADD VALUE 'pending' |
3 changes: 3 additions & 0 deletions
3
...schema/pg/testdata/TestPostgres_AddEnumValue/add_enum_value_after/before_a_value.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,3 @@ | ||
CREATE TYPE "tst_pg_add_enum_value_1"."status" AS ENUM ('active', 'inactive') | ||
ALTER TYPE "tst_pg_add_enum_value_1"."status" ADD VALUE 'pending' BEFORE 'active' | ||
ALTER TYPE "tst_pg_add_enum_value_1"."status" ADD VALUE 'rejected' AFTER 'inactive' |
2 changes: 2 additions & 0 deletions
2
pkg/schema/pg/testdata/TestPostgres_DropEnum/drop_enum.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 @@ | ||
CREATE TYPE "tst_pg_drop_enum_0"."status" AS ENUM ('active', 'inactive') | ||
DROP TYPE "tst_pg_drop_enum_0"."status" |
2 changes: 2 additions & 0 deletions
2
pkg/schema/pg/testdata/TestPostgres_DropEnum/drop_enum_with_if_exists.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 @@ | ||
DROP TYPE "tst_pg_drop_enum_1"."status" | ||
DROP TYPE IF EXISTS "tst_pg_drop_enum_1"."status" |
2 changes: 2 additions & 0 deletions
2
pkg/schema/pg/testdata/TestPostgres_RenameEnum/rename_enum.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 @@ | ||
CREATE TYPE "tst_pg_rename_enum_0"."status" AS ENUM ('active', 'inactive') | ||
ALTER TYPE "tst_pg_rename_enum_0"."status" RENAME TO "status2" |
2 changes: 2 additions & 0 deletions
2
pkg/schema/pg/testdata/TestPostgres_RenameValue/add_enum_value.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 @@ | ||
CREATE TYPE "tst_pg_add_enum_value_0"."status" AS ENUM ('active', 'inactive') | ||
ALTER TYPE "tst_pg_add_enum_value_0"."status" ADD VALUE 'pending' |
6 changes: 6 additions & 0 deletions
6
pkg/schema/pg/testdata/TestPostgres_RenameValue/rename_enum_value.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,6 @@ | ||
CREATE TYPE "tst_pg_rename_enum_value_0"."status" AS ENUM ('active', 'inactive') | ||
CREATE TABLE tst_pg_rename_enum_value_0.articles ( | ||
"status" tst_pg_rename_enum_value_0.status | ||
) | ||
INSERT INTO tst_pg_rename_enum_value_0.articles (status) VALUES ('active'); | ||
ALTER TYPE "tst_pg_rename_enum_value_0"."status" RENAME VALUE 'active' TO 'pending' |