diff options
author | jloup <jeanloup.jamet@gmail.com> | 2018-05-10 16:22:29 +0200 |
---|---|---|
committer | jloup <jeanloup.jamet@gmail.com> | 2018-05-10 16:22:29 +0200 |
commit | 299b6b6d9fb879c06e675ef240f361348629ff6c (patch) | |
tree | 27909cd54e53d58e612da93e15f1005af86870ec /db/migrations.go | |
parent | 3b8833854f83f75e3d16c1fdb869937f690e48ea (diff) | |
download | Front-299b6b6d9fb879c06e675ef240f361348629ff6c.tar.gz Front-299b6b6d9fb879c06e675ef240f361348629ff6c.tar.zst Front-299b6b6d9fb879c06e675ef240f361348629ff6c.zip |
Add column 'status' to market_configs.v0.0.9
Diffstat (limited to 'db/migrations.go')
-rw-r--r-- | db/migrations.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrations.go b/db/migrations.go index f6ecb60..f0df49c 100644 --- a/db/migrations.go +++ b/db/migrations.go | |||
@@ -78,4 +78,15 @@ var migrations []Migration = []Migration{ | |||
78 | }, | 78 | }, |
79 | Down: []string{"DROP VIEW view_balances", "DROP INDEX checkpoints_idx"}, | 79 | Down: []string{"DROP VIEW view_balances", "DROP INDEX checkpoints_idx"}, |
80 | }, | 80 | }, |
81 | { | ||
82 | Version: 201805101000, | ||
83 | Up: []string{ | ||
84 | "CREATE TYPE market_config_status AS ENUM ('enabled', 'disabled', 'invalid_credentials')", | ||
85 | "ALTER TABLE market_configs ADD status market_config_status NOT NULL DEFAULT 'disabled'", | ||
86 | }, | ||
87 | Down: []string{ | ||
88 | "ALTER TABLE market_configs DROP COLUMN status", | ||
89 | "DROP TYPE market_config_status", | ||
90 | }, | ||
91 | }, | ||
81 | } | 92 | } |