fix: correct migration chain for league settings columns (2.5.1)
Migration 0003_league_settings was chained to 0002 but the DB was already at 0003_site_admin (an applied migration with no version file). Added a stub for 0003_site_admin to satisfy the chain and updated the down_revision on 0003_league_settings accordingly. Columns eligible_min_sessions and break_even_cents now apply cleanly on top of the existing schema.
This commit is contained in:
1 parent
2fc7bab183
commit
882726e5e9
3 files changed
+25
-2
No files matched your search
@@ -9,7 +9,7 @@ DATA_PATH = BASE_DIR / "data" / "entries.csv"
|
|||||||
DEFAULT_DATABASE_URL = f"sqlite:///{BASE_DIR / 'data' / 'boker-dev.sqlite3'}"
|
DEFAULT_DATABASE_URL = f"sqlite:///{BASE_DIR / 'data' / 'boker-dev.sqlite3'}"
|
||||||
|
|
||||||
ELIGIBLE_MIN_SESSIONS = 3
|
ELIGIBLE_MIN_SESSIONS = 3
|
||||||
APP_VERSION = "2.5.0"
|
APP_VERSION = "2.5.1"
|
||||||
|
|
||||||
|
|
||||||
def load_local_env(env_path: Path) -> None:
|
def load_local_env(env_path: Path) -> None:
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import sqlalchemy as sa
|
|||||||
|
|
||||||
|
|
||||||
revision = "0003_league_settings"
|
revision = "0003_league_settings"
|
||||||
down_revision = "0002_league_public_key"
|
down_revision = "0003_site_admin"
|
||||||
branch_labels = None
|
branch_labels = None
|
||||||
depends_on = None
|
depends_on = None
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
"""site admin (stub — already applied)
|
||||||
|
|
||||||
|
Revision ID: 0003_site_admin
|
||||||
|
Revises: 0002_league_public_key
|
||||||
|
Create Date: 2026-06-26
|
||||||
|
"""
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
|
from alembic import op
|
||||||
|
|
||||||
|
|
||||||
|
revision = "0003_site_admin"
|
||||||
|
down_revision = "0002_league_public_key"
|
||||||
|
branch_labels = None
|
||||||
|
depends_on = None
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade() -> None:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade() -> None:
|
||||||
|
pass
|
||||||
Reference in new issue
Block a user