Skip to content

Commit d4db446

Browse files
Keep database migration
... as it was already applied to CILR [ci] Signed-off-by: Robert Autenrieth <[email protected]>
1 parent d01e15b commit d4db446

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
-- Only SVs that joined the network at any point in the initial migration have all import updates
2+
-- This statement was already part of the migration script V036__backfilling_import_updates.sql.
3+
-- It needs to be executed again because Scala code for backfilling import updates
4+
-- was reverted and re-applied between these two migrations.
5+
update update_history_backfilling as bf
6+
set import_updates_complete = true
7+
where
8+
bf.complete = true and
9+
bf.joining_migration_id = (
10+
select min(migration_id)
11+
from update_history_transactions as tx
12+
where bf.history_id = tx.history_id
13+
);

0 commit comments

Comments
 (0)