We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d01e15b commit d4db446Copy full SHA for d4db446
apps/common/src/main/resources/db/migration/canton-network/postgres/stable/V039__backfilling_import_updates2.sql
@@ -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