]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front.git/blobdiff - db/migrations.go
Fix checkpoint not null in migration
[perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front.git] / 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"},