代码提交
This commit is contained in:
1 parent
500dab29ab
commit
70da7c5649
59 files changed
+12108
-148
No files matched your search
+34
@@ -0,0 +1,34 @@
|
||||
"""Placeholder for a locally-stamped revision that never landed in git.
|
||||
|
||||
Some existing databases (including local sqlite) have ``alembic_version``
|
||||
stamped at ``20260620_01``. That file was never committed; ``20260620_02``
|
||||
(gather_first) originally revised ``20260619_01`` directly, so
|
||||
``alembic upgrade head`` failed with ``Can't locate revision identified by
|
||||
'20260620_01'`` and later schema patches (including ``task_buttons.login_params_json``)
|
||||
never ran.
|
||||
|
||||
This no-op restores the missing node so those DBs can walk
|
||||
``20260620_01 → 20260620_02 → … → head``. Fresh DBs at ``20260619_01`` just
|
||||
pass through. ``20260620_02`` is still idempotent (``_has_column``), so a DB
|
||||
that already applied gather_first under the old id is safe to re-run.
|
||||
|
||||
Revision ID: 20260620_01
|
||||
Revises: 20260619_01
|
||||
Create Date: 2026-06-20
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
revision = "20260620_01"
|
||||
down_revision = "20260619_01"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
pass
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
pass
|
||||
+2
-2
@@ -12,7 +12,7 @@ sweep adds it to already-existing tables (sqlite/mysql/postgres). This revision
|
||||
alembic graph consistent with the rest of the chain columns and documents the change.
|
||||
|
||||
Revision ID: 20260620_02
|
||||
Revises: 20260619_01
|
||||
Revises: 20260620_01
|
||||
Create Date: 2026-06-20
|
||||
"""
|
||||
|
||||
@@ -24,7 +24,7 @@ from sqlalchemy import inspect
|
||||
|
||||
|
||||
revision = "20260620_02"
|
||||
down_revision = "20260619_01"
|
||||
down_revision = "20260620_01"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
Reference in new issue
Block a user