Alembic Database fix

This commit is contained in:
Koncept Kit
2026-01-05 17:06:32 +07:00
parent 2547758864
commit 82319509c3

View File

@@ -207,9 +207,7 @@ def upgrade() -> None:
except Exception as e:
print(f" ⚠️ Warning: Type conversion failed: {e}")
# Fix nullable constraints
op.alter_column('event_galleries', 'created_by', nullable=False)
print(" ✓ Fixed nullable constraint")
# Note: uploaded_by column already has correct nullable=False in both DEV and PROD
# ============================================================
# 6. FIX BYLAWS_DOCUMENTS TABLE