2021-04-26 19:11:17 +00:00
|
|
|
"""empty message
|
|
|
|
|
|
|
|
Revision ID: 665624ac29f1
|
|
|
|
Revises: c872232ebdcb
|
|
|
|
Create Date: 2021-04-26 15:10:34.000646
|
|
|
|
|
|
|
|
"""
|
|
|
|
from alembic import op
|
|
|
|
import sqlalchemy as sa
|
|
|
|
|
|
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
|
|
revision = '665624ac29f1'
|
|
|
|
down_revision = 'c872232ebdcb'
|
|
|
|
branch_labels = None
|
|
|
|
depends_on = None
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
|
|
op.add_column('data_store', sa.Column('file_id', sa.Integer(), nullable=True))
|
2021-05-04 17:39:49 +00:00
|
|
|
op.create_foreign_key('file_id_key', 'data_store', 'file', ['file_id'], ['id'])
|
2021-04-26 19:11:17 +00:00
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
|
|
def downgrade():
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
2021-05-04 17:39:49 +00:00
|
|
|
op.drop_constraint('file_id_key', 'data_store', type_='foreignkey')
|
2021-04-26 19:11:17 +00:00
|
|
|
op.drop_column('data_store', 'file_id')
|
|
|
|
# ### end Alembic commands ###
|