mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-26 02:10:31 +00:00
12 lines
308 B
SQL
12 lines
308 B
SQL
-- +migrate Up
|
|
|
|
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 builds SET build_deploy = '';
|
|
|
|
-- +migrate Down
|
|
|
|
ALTER TABLE repos DROP COLUMN repo_scm;
|
|
ALTER TABLE builds DROP COLUMN build_deploy;
|