From 1f2e73e024b24d6f9597fd3d76bb9c604f3bbb54 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sat, 18 Apr 2026 23:41:29 +0000 Subject: [PATCH] alembic 0002: fix down_revision to '0001' (matches 0001_initial's id) 0001_initial.py declares revision='0001', not '0001_initial'. My 0002 migration had down_revision='0001_initial', so alembic couldn't splice it into the chain and silently ran 'upgrade head' as a no-op on pod startup. The rsu_vest/rsu_offset columns never got created and every INSERT from the new code failed with 'column does not exist'. --- alembic/versions/0002_add_rsu_columns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alembic/versions/0002_add_rsu_columns.py b/alembic/versions/0002_add_rsu_columns.py index 43fb7bb..9fb4b09 100644 --- a/alembic/versions/0002_add_rsu_columns.py +++ b/alembic/versions/0002_add_rsu_columns.py @@ -9,8 +9,8 @@ import sqlalchemy as sa from alembic import op -revision = "0002_add_rsu_columns" -down_revision = "0001_initial" +revision = "0002" +down_revision = "0001" branch_labels = None depends_on = None