This commit is contained in:
Timothy Jaeryang Baek committed 2026-05-14 13:46:54 +09:00
1 parent 1004dad274
commit db2b3d7fd8
3 files changed
+46 -31

No files matched your search

@@ -16,10 +16,15 @@ depends_on = None
def upgrade():
op.add_column(
'file',
sa.Column('access_control', sa.JSON(), nullable=True),
)
conn = op.get_bind()
inspector = sa.inspect(conn)
file_cols = {c['name'] for c in inspector.get_columns('file')}
if 'access_control' not in file_cols:
op.add_column(
'file',
sa.Column('access_control', sa.JSON(), nullable=True),
)
def downgrade():