From 284c99175ff7e1541c9a31735e5da0352f7d177b Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Tue, 27 Oct 2015 13:44:57 -0700 Subject: [PATCH] build_deploy should default to empty, no nil. just to be safe --- store/migration/mysql/2.sql | 3 ++- store/migration/postgres/2.sql | 3 ++- store/migration/sqlite3/2.sql | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/store/migration/mysql/2.sql b/store/migration/mysql/2.sql index 0778e006..7f3fb887 100644 --- a/store/migration/mysql/2.sql +++ b/store/migration/mysql/2.sql @@ -3,7 +3,8 @@ ALTER TABLE repos ADD COLUMN repo_scm VARCHAR(25); ALTER TABLE builds ADD COLUMN build_deploy VARCHAR(500); -UPDATE repos SET repo_scm = 'git'; +UPDATE repos SET repo_scm = 'git'; +UPDATE builds SET build_deploy = ''; -- +migrate Down diff --git a/store/migration/postgres/2.sql b/store/migration/postgres/2.sql index 0778e006..7f3fb887 100644 --- a/store/migration/postgres/2.sql +++ b/store/migration/postgres/2.sql @@ -3,7 +3,8 @@ ALTER TABLE repos ADD COLUMN repo_scm VARCHAR(25); ALTER TABLE builds ADD COLUMN build_deploy VARCHAR(500); -UPDATE repos SET repo_scm = 'git'; +UPDATE repos SET repo_scm = 'git'; +UPDATE builds SET build_deploy = ''; -- +migrate Down diff --git a/store/migration/sqlite3/2.sql b/store/migration/sqlite3/2.sql index 49b4a4ec..b9ad93ef 100644 --- a/store/migration/sqlite3/2.sql +++ b/store/migration/sqlite3/2.sql @@ -3,7 +3,8 @@ ALTER TABLE repos ADD COLUMN repo_scm TEXT; ALTER TABLE builds ADD COLUMN build_deploy TEXT; -UPDATE repos SET repo_scm = 'git'; +UPDATE repos SET repo_scm = 'git'; +UPDATE builds SET build_deploy = ''; -- +migrate Down