Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Парфенов Михаил Александрович committed Dec 12, 2024
1 parent 41d6a76 commit 7f3d52c
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,9 @@ def upgrade():
# dim_room_act
op.execute('ALTER TABLE "DM_TIMETABLE".dim_room_act drop COLUMN IF EXISTS id')
op.execute('ALTER TABLE "DM_TIMETABLE".dim_room_act add COLUMN IF not EXISTS id UUID')
op.drop_column('ods_link_timetable_group', 'lesson_id', schema='ODS_TIMETABLE')


def downgrade():
op.add_column(
'ods_link_timetable_group',
sa.Column('lesson_id', sa.INTEGER(), autoincrement=False, nullable=True),
schema='ODS_TIMETABLE',
)
# alembic cannot do it properly, so you need to manually handle columns
# dim_event_act
op.execute('ALTER TABLE "DM_TIMETABLE".dim_event_act drop COLUMN IF EXISTS id')
Expand Down

0 comments on commit 7f3d52c

Please sign in to comment.