Added migrations for team_secrets
This commit is contained in:
parent
225d1c8288
commit
1b84375db5
3 changed files with 57 additions and 0 deletions
19
store/datastore/ddl/mysql/7.sql
Normal file
19
store/datastore/ddl/mysql/7.sql
Normal file
|
@ -0,0 +1,19 @@
|
|||
-- +migrate Up
|
||||
|
||||
CREATE TABLE team_secrets (
|
||||
team_secret_id INTEGER PRIMARY KEY AUTO_INCREMENT
|
||||
,team_secret_key VARCHAR(255)
|
||||
,team_secret_name VARCHAR(255)
|
||||
,team_secret_value MEDIUMBLOB
|
||||
,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;
|
19
store/datastore/ddl/postgres/7.sql
Normal file
19
store/datastore/ddl/postgres/7.sql
Normal file
|
@ -0,0 +1,19 @@
|
|||
-- +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;
|
19
store/datastore/ddl/sqlite3/7.sql
Normal file
19
store/datastore/ddl/sqlite3/7.sql
Normal file
|
@ -0,0 +1,19 @@
|
|||
-- +migrate Up
|
||||
|
||||
CREATE TABLE team_secrets (
|
||||
team_secret_id INTEGER PRIMARY KEY AUTOINCREMENT
|
||||
,team_secret_key TEXT
|
||||
,team_secret_name TEXT
|
||||
,team_secret_value TEXT
|
||||
,team_secret_images TEXT
|
||||
,team_secret_events TEXT
|
||||
|
||||
,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;
|
Loading…
Reference in a new issue