-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add failing test case for drop_column
- Loading branch information
Showing
13 changed files
with
117 additions
and
21 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
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,17 @@ | ||
CREATE TABLE IF NOT EXISTS "schema_migration" ( | ||
"version" TEXT NOT NULL | ||
); | ||
CREATE UNIQUE INDEX "schema_migration_version_idx" ON "schema_migration" (version); | ||
CREATE TABLE IF NOT EXISTS "e2e_user_posts" ( | ||
"id" TEXT PRIMARY KEY, | ||
"user_id" char(36) NOT NULL, | ||
"slug" TEXT NOT NULL, | ||
"content" TEXT NOT NULL DEFAULT '', | ||
FOREIGN KEY (user_id) REFERENCES "_e2e_users_tmp" (id) ON UPDATE NO ACTION ON DELETE CASCADE | ||
); | ||
CREATE UNIQUE INDEX "e2e_user_notes_slug_idx" ON "e2e_user_posts" (slug); | ||
CREATE TABLE IF NOT EXISTS "e2e_users" ( | ||
"id" TEXT PRIMARY KEY, | ||
"created_at" DATETIME NOT NULL, | ||
"updated_at" DATETIME NOT NULL | ||
, "name" TEXT); |
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,17 @@ | ||
CREATE TABLE IF NOT EXISTS "schema_migration" ( | ||
"version" TEXT NOT NULL | ||
); | ||
CREATE UNIQUE INDEX "schema_migration_version_idx" ON "schema_migration" (version); | ||
CREATE TABLE IF NOT EXISTS "e2e_user_posts" ( | ||
"id" TEXT PRIMARY KEY, | ||
"user_id" char(36) NOT NULL, | ||
"slug" TEXT NOT NULL, | ||
"content" TEXT NOT NULL DEFAULT '', | ||
FOREIGN KEY (user_id) REFERENCES "_e2e_users_tmp" (id) ON UPDATE NO ACTION ON DELETE CASCADE | ||
); | ||
CREATE UNIQUE INDEX "e2e_user_notes_slug_idx" ON "e2e_user_posts" (slug); | ||
CREATE TABLE IF NOT EXISTS "e2e_users" ( | ||
"id" TEXT PRIMARY KEY, | ||
"created_at" DATETIME NOT NULL, | ||
"updated_at" DATETIME NOT NULL | ||
); |
1 change: 1 addition & 0 deletions
1
internal/e2e/migrations/20191100000010_users_drop_name.down.fizz
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 @@ | ||
add_column("e2e_users", "name", "string", {"null": true}) |
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 @@ | ||
drop_column("e2e_users", "name") |