From: Ismaƫl Bouya Date: Mon, 7 May 2018 11:52:13 +0000 (+0200) Subject: Fix checkpoint not null in migration X-Git-Tag: v0.0.8~7 X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FFront.git;a=commitdiff_plain;h=400ff25bc71d90dedf66b49cde459a6efe456cf8 Fix checkpoint not null in migration --- 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{ 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"},