]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front.git/commitdiff
Fix checkpoint not null in migration
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 7 May 2018 11:52:13 +0000 (13:52 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 7 May 2018 11:52:13 +0000 (13:52 +0200)
db/migrations.go

index 23847c9f4ad201494afe8f0a8db2ec9180ce5d8e..f6ecb601bce9ee31c3b31bebd624647eb29ac884 100644 (file)
@@ -73,7 +73,7 @@ var migrations []Migration = []Migration{
                                              FROM report_lines
                                                JOIN reports ON reports.id = report_lines.report_id
                                                JOIN market_configs ON reports.market_config_id = market_configs.id
-                                             WHERE report_lines.payload::jsonb->'checkpoint' IS NOT NULL`,
+                                             WHERE report_lines.payload::jsonb->>'checkpoint' IS NOT NULL`,
                        `CREATE INDEX checkpoints_idx ON report_lines ((payload->>'checkpoint'))`,
                },
                Down: []string{"DROP VIEW view_balances", "DROP INDEX checkpoints_idx"},