aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-05-07 13:52:13 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-05-07 13:52:13 +0200
commit400ff25bc71d90dedf66b49cde459a6efe456cf8 (patch)
treee798075aeca8499de5c56f658a35fab551bf2b3b
parentd4fdccf261b2104a7ba0f06b1b4b22db518c3cf8 (diff)
downloadFront-400ff25bc71d90dedf66b49cde459a6efe456cf8.tar.gz
Front-400ff25bc71d90dedf66b49cde459a6efe456cf8.tar.zst
Front-400ff25bc71d90dedf66b49cde459a6efe456cf8.zip
Fix checkpoint not null in migration
-rw-r--r--db/migrations.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrations.go b/db/migrations.go
index 23847c9..f6ecb60 100644
--- a/db/migrations.go
+++ b/db/migrations.go
@@ -73,7 +73,7 @@ var migrations []Migration = []Migration{
73 FROM report_lines 73 FROM report_lines
74 JOIN reports ON reports.id = report_lines.report_id 74 JOIN reports ON reports.id = report_lines.report_id
75 JOIN market_configs ON reports.market_config_id = market_configs.id 75 JOIN market_configs ON reports.market_config_id = market_configs.id
76 WHERE report_lines.payload::jsonb->'checkpoint' IS NOT NULL`, 76 WHERE report_lines.payload::jsonb->>'checkpoint' IS NOT NULL`,
77 `CREATE INDEX checkpoints_idx ON report_lines ((payload->>'checkpoint'))`, 77 `CREATE INDEX checkpoints_idx ON report_lines ((payload->>'checkpoint'))`,
78 }, 78 },
79 Down: []string{"DROP VIEW view_balances", "DROP INDEX checkpoints_idx"}, 79 Down: []string{"DROP VIEW view_balances", "DROP INDEX checkpoints_idx"},