Maurice
e6f4f7a5f3
fix(db): leave nothing behind when a first Postgres boot fails, so RESTORE_FROM_BACKUP still runs
...
createFromBaseline created the migration history's table through MikroORM's
storage before, and outside, the transaction that runs the baseline. Without a
master transaction MikroORM commits that table on its own, so a first boot that
failed in the baseline (a server without ICU, a timeout, a dropped connection)
left an empty mikro_orm_migrations behind. The next start with
RESTORE_FROM_BACKUP took that for a database in use, skipped the restore with a
warning and brought up an empty instance, after which the restore never ran.
The table is now created on the baseline's own transaction, so a failed first
boot leaves the database empty. The boot restore also treats a lone migration
history that records nothing as no database, which a restore clears anyway; any
other answer keeps it, so the check fails closed. Database-Postgres says both.
2026-11-17 23:04:11 +01:00
..
2026-10-25 02:10:39 +00:00
2026-07-18 22:13:52 +02:00
2026-11-17 23:03:33 +01:00
2026-10-25 02:10:39 +00:00
2026-11-13 10:17:11 +01:00
2026-10-30 16:16:10 +01:00
2026-11-13 10:17:04 +01:00
2026-10-24 22:42:18 +00:00
2026-10-24 22:42:18 +00:00
2026-10-25 02:10:39 +00:00
2026-10-24 22:42:18 +00:00
2026-10-29 13:34:28 +01:00
2026-10-24 22:42:18 +00:00
2026-10-25 02:10:39 +00:00
2026-11-13 10:17:26 +01:00
2026-11-05 14:36:22 +01:00
2026-10-30 16:16:10 +01:00
2026-11-12 15:39:21 +01:00
2026-10-24 22:42:18 +00:00
2026-11-13 20:49:08 +01:00
2026-10-24 22:42:18 +00:00
2026-10-25 02:10:39 +00:00
2026-10-25 02:10:39 +00:00
2026-11-12 15:39:21 +01:00
2026-11-17 23:03:33 +01:00
2026-11-13 20:57:55 +01:00
2026-11-13 10:17:03 +01:00
2026-11-13 10:17:25 +01:00
2026-10-25 02:10:39 +00:00
2026-10-01 19:40:22 +02:00
2026-10-24 22:42:17 +00:00
2026-11-13 10:17:12 +01:00
2026-10-31 00:40:23 +00:00
2026-10-25 02:10:39 +00:00
2026-11-13 10:17:04 +01:00
2026-10-14 13:24:27 +02:00
2026-11-17 23:04:11 +01:00
2026-10-24 22:42:18 +00:00
2026-11-13 10:17:12 +01:00
2026-11-17 23:03:53 +01:00
2026-10-24 22:42:18 +00:00
2026-10-24 22:42:18 +00:00
2026-10-24 22:42:18 +00:00
2026-10-25 02:10:39 +00:00
2026-11-17 23:03:55 +01:00
2026-11-17 23:03:55 +01:00
2026-10-24 22:42:18 +00:00
2026-10-31 00:40:23 +00:00
2026-10-25 02:10:39 +00:00
2026-10-25 02:10:39 +00:00
2026-11-17 23:03:52 +01:00
2026-10-24 22:42:18 +00:00
2026-11-17 23:03:33 +01:00
2026-10-24 22:42:17 +00:00
2026-10-24 22:42:18 +00:00
2026-11-11 20:57:42 +00:00
2026-10-24 22:42:18 +00:00
2026-10-24 22:42:18 +00:00
2026-10-25 02:10:39 +00:00
2026-11-04 14:26:25 +01:00
2026-10-31 00:40:23 +00:00
2026-11-13 10:17:26 +01:00
2026-11-13 10:17:12 +01:00
2026-11-13 10:17:06 +01:00
2026-11-14 17:48:57 +01:00
2026-10-24 22:42:17 +00:00
2026-04-20 10:11:53 +02:00
2026-10-25 02:10:39 +00:00
2026-10-24 22:42:17 +00:00
2026-11-17 08:44:10 +01:00
2026-11-13 10:17:12 +01:00
2026-11-13 10:17:26 +01:00
2026-11-12 08:42:16 +01:00
2026-10-25 02:10:39 +00:00
2026-10-25 02:10:39 +00:00
2026-10-25 02:10:39 +00:00
2026-11-12 15:39:21 +01:00
2026-10-25 02:10:39 +00:00
2026-10-25 02:10:39 +00:00
2026-10-25 02:10:39 +00:00
2026-10-24 22:42:18 +00:00
2026-11-13 10:17:12 +01:00
2026-10-24 22:42:18 +00:00
2026-11-17 08:44:10 +01:00
2026-09-25 09:19:11 +02:00
2026-11-17 23:03:54 +01:00
2026-11-17 23:03:54 +01:00
2026-09-20 12:11:41 +02:00
2026-10-24 22:42:18 +00:00
2026-10-24 22:42:17 +00:00
2026-10-24 22:42:17 +00:00
2026-10-25 02:10:39 +00:00
2026-10-24 22:42:17 +00:00
2026-11-13 17:46:19 +01:00
2026-10-24 22:42:18 +00:00
2026-11-14 17:48:57 +01:00
2026-10-29 13:34:28 +01:00
2026-10-24 22:42:18 +00:00
2026-11-17 08:44:10 +01:00
2026-10-24 22:42:18 +00:00
2026-11-11 20:59:59 +00:00
2026-11-13 16:39:46 +01:00
2026-10-31 03:25:55 +00:00
2026-10-25 02:10:39 +00:00
2026-10-25 02:10:39 +00:00
2026-10-25 02:10:39 +00:00
2026-11-13 10:17:04 +01:00
2026-11-17 23:03:52 +01:00
2026-10-24 22:42:18 +00:00
2026-11-17 23:03:55 +01:00
2026-11-13 10:17:06 +01:00
2026-10-24 22:42:18 +00:00
2026-10-24 22:42:18 +00:00
2026-10-25 02:10:39 +00:00
2026-09-28 12:19:49 +02:00