mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-13 12:06:29 +00:00
18 lines
326 B
MySQL
18 lines
326 B
MySQL
|
-- +migrate Up
|
||
|
|
||
|
CREATE TABLE config (
|
||
|
config_id SERIAL PRIMARY KEY
|
||
|
,config_repo_id INTEGER
|
||
|
,config_hash VARCHAR(250)
|
||
|
,config_data BYTEA
|
||
|
|
||
|
,UNIQUE(config_hash, config_repo_id)
|
||
|
);
|
||
|
|
||
|
ALTER TABLE builds ADD COLUMN build_config_id INTEGER;
|
||
|
UPDATE builds set build_config_id = 0;
|
||
|
|
||
|
-- +migrate Down
|
||
|
|
||
|
DROP TABLE config;
|