1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-24 10:07:21 +02:00

build_deploy should default to empty, no nil. just to be safe

This commit is contained in:
Brad Rydzewski 2015-10-27 13:44:57 -07:00
parent 2ba47ddcc5
commit 284c99175f
3 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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