diff options
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 | } |