mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-04 23:56:30 +00:00
20 lines
437 B
MySQL
20 lines
437 B
MySQL
|
-- +migrate Up
|
||
|
|
||
|
CREATE TABLE team_secrets (
|
||
|
team_secret_id SERIAL PRIMARY KEY
|
||
|
,team_secret_key VARCHAR(255)
|
||
|
,team_secret_name VARCHAR(255)
|
||
|
,team_secret_value BYTEA
|
||
|
,team_secret_images VARCHAR(2000)
|
||
|
,team_secret_events VARCHAR(2000)
|
||
|
|
||
|
,UNIQUE(team_secret_name, team_secret_key)
|
||
|
);
|
||
|
|
||
|
CREATE INDEX ix_team_secrets_key ON team_secrets (team_secret_key);
|
||
|
|
||
|
-- +migrate Down
|
||
|
|
||
|
DROP INDEX ix_team_secrets_key;
|
||
|
DROP TABLE team_secrets;
|