You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorials/rehearsing-the-v4-migration.md
+25-9Lines changed: 25 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,11 +163,13 @@ v4-migrator verify \
163
163
Expected output:
164
164
165
165
```text linenums="1"
166
+
== v4-migrator verify ==
167
+
166
168
[Schema]
167
-
OK Schema version = 202605111028
169
+
OK Flyway head = 202605111028
168
170
169
171
[Row counts]
170
-
Table Source Staging v5
172
+
Table Source Staging v5 Note
171
173
(no source configured)
172
174
LICENSE - 0 0
173
175
TEAM - 0 0
@@ -178,9 +180,11 @@ Expected output:
178
180
179
181
[Constraints]
180
182
13 CHECK constraint(s) hold across 55 loaded table(s)
183
+
184
+
== verify complete ==
181
185
```
182
186
183
-
If the schema version is anything else or any row count is non-zero, **except in the `PERMISSION` table**,
187
+
If the Flyway head differs or any row count is non-zero, **except in the `PERMISSION` table**,
184
188
the rest of the rehearsal will not work.
185
189
186
190
## Dry-running the migration
@@ -248,16 +252,18 @@ We drop `--dry-run` and run the real extract, transform, and load:
248
252
```
249
253
250
254
Runtime depends on the size of our v4 dataset.
251
-
The migrator prints per-table progress and a heartbeat every five seconds for long-running tables:
255
+
The migrator prints per-table progress and a heartbeat every five seconds for long-running tables, each phase prints a completion line, and `run` ends with a `Migration completed` line that confirms success:
252
256
253
257
```text linenums="1"
254
258
MetricsRetention - Metrics retention set to 30 days (cutoff = 2026-04-15T11:38:10.636499285Z)
255
259
ExtractPhase - Extracting LICENSE
256
260
ExtractPhase - -> 811 rows in 395 ms
257
261
...
262
+
ExtractPhase - Extract phase completed: 64 table(s), 5821044 row(s) in 184302 ms
258
263
TransformPhase - Transforming LICENSE
259
264
TransformPhase - -> 811 rows in 60 ms
260
265
...
266
+
TransformPhase - Transform phase completed: 64 table(s), 5820102 row(s) in 96118 ms
261
267
LoadPhase - Pre-creating metrics partitions for 32 day(s) from 2026-04-15 to 2026-05-16
262
268
LoadPhase - Loading LICENSE into v5
263
269
LoadProgressReporter - -> LICENSE: 811 rows in 56 ms (14482 rows/s)
@@ -267,6 +273,12 @@ LoadProgressReporter - .. VULNERABLESOFTWARE_VULNERABILITIES: still loading af
267
273
LoadProgressReporter - .. VULNERABLESOFTWARE_VULNERABILITIES: still loading after 10s (expected 2740322 rows)
268
274
LoadProgressReporter - .. VULNERABLESOFTWARE_VULNERABILITIES: still loading after 15s (expected 2740322 rows)
269
275
...
276
+
LoadPhase - Finalizing load: re-enabling triggers and resetting identity sequences
0 commit comments