mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 21:44:08 +00:00
added scm and deploy fields. plan to support hg, github deploys
This commit is contained in:
11
store/migration/mysql/2.sql
Normal file
11
store/migration/mysql/2.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
-- +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';
|
||||
|
||||
-- +migrate Down
|
||||
|
||||
ALTER TABLE repos DROP COLUMN repo_scm;
|
||||
ALTER TABLE builds DROP COLUMN build_deploy;
|
11
store/migration/postgres/2.sql
Normal file
11
store/migration/postgres/2.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
-- +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';
|
||||
|
||||
-- +migrate Down
|
||||
|
||||
ALTER TABLE repos DROP COLUMN repo_scm;
|
||||
ALTER TABLE builds DROP COLUMN build_deploy;
|
11
store/migration/sqlite3/2.sql
Normal file
11
store/migration/sqlite3/2.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
-- +migrate Up
|
||||
|
||||
ALTER TABLE repos ADD COLUMN repo_scm TEXT;
|
||||
ALTER TABLE builds ADD COLUMN build_deploy TEXT;
|
||||
|
||||
UPDATE repos SET repo_scm = 'git';
|
||||
|
||||
-- +migrate Down
|
||||
|
||||
ALTER TABLE repos DROP COLUMN repo_scm;
|
||||
ALTER TABLE builds DROP COLUMN build_deploy;
|
Reference in New Issue
Block a user