Files
ProxmoxVE/ct
Darkatek7 763732fc5b romm: remove stale 1.x alembic migrations on update (#16101)
* fix(romm): remove stale 1.x alembic migrations on update

RomM releases before v2.4 shipped dot-version migration files
(1.6.2_.py, 1.7.1_.py, 1.8_.py, 1.8.1_.py, 1.8.2_.py, 1.8.3_.py,
2.0.0_.py) alongside the 4-digit series. When the romm app is
upgraded from a pre-v2.4 install to a current release, these
files survive in /opt/romm/backend/alembic/versions/ and cause
alembic to fail with 'Multiple head revisions are present for
given argument head', preventing the backend from starting.

Add a defensive cleanup step in the update function that runs
right after fetch_and_deploy_gh_release. The cleanup removes any
leftover 1.x and 2.0.0_ migration files plus cached __pycache__
directories. It is a no-op on clean installs of the current
release, and only affects files in the alembic/versions/ folder.

* Apply suggestion from @CrazyWolf13

Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>

---------

Co-authored-by: Sam Heinz <sam@samheinz.com>
Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
2026-07-30 10:37:17 +02:00
..
2026-07-30 10:23:54 +02:00
2026-06-13 18:43:15 +02:00
2026-06-13 18:43:15 +02:00
2026-07-16 18:01:44 +10:00
2026-06-13 18:43:15 +02:00
2026-06-13 18:43:15 +02:00
2026-06-14 14:32:06 +02:00
2026-06-14 14:32:06 +02:00
2026-06-14 14:32:06 +02:00
2026-07-27 20:41:01 +10:00
2026-06-14 14:32:06 +02:00
2026-06-27 21:07:03 +02:00
2026-07-27 10:52:43 +02:00
2026-06-23 18:20:47 +02:00
2026-07-28 13:36:40 +02:00
2026-07-27 10:32:20 +02:00
2026-06-14 14:32:06 +02:00
2026-07-30 10:23:54 +02:00
2026-07-07 22:45:52 +02:00
2026-07-20 11:55:01 +02:00
2026-07-14 14:16:10 +02:00
2026-07-05 22:28:00 +02:00
2026-07-16 17:30:38 +10:00
2026-07-17 14:30:55 +02:00
2026-06-17 10:12:39 +02:00
2026-07-13 17:39:10 +02:00
2026-07-11 20:00:36 +02:00
2026-07-27 10:51:17 +02:00
2026-07-15 20:55:10 +10:00
2026-07-27 09:53:27 +02:00
2026-07-30 10:22:29 +02:00
2026-07-26 18:53:08 +02:00
2026-07-17 09:00:32 +02:00
2026-07-28 13:36:40 +02:00
2026-07-28 13:36:40 +02:00
2026-07-27 08:41:11 +02:00
2026-07-30 10:06:57 +02:00
2026-07-27 10:31:10 +02:00
2026-07-28 13:36:40 +02:00
2026-07-13 11:05:11 +02:00
2026-07-26 19:04:53 +02:00
2026-07-27 10:03:11 +02:00
2026-07-16 09:01:53 +02:00
2026-07-10 10:57:27 +02:00
2026-07-28 13:36:40 +02:00
2026-07-28 13:36:40 +02:00
2026-07-27 12:50:46 +02:00
2026-07-14 14:15:32 +02:00