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

12 lines
270 B
MySQL
Raw Normal View History

-- +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;