45 lines
1.3 KiB
Python
45 lines
1.3 KiB
Python
"""empty message
|
|
|
|
Revision ID: 724351b0562f
|
|
Revises:
|
|
Create Date: 2024-04-10 02:15:27.572875
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '724351b0562f'
|
|
down_revision = None
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('film_manufacturer',
|
|
sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
|
|
sa.Column('name', sa.String(length=255), nullable=True),
|
|
sa.PrimaryKeyConstraint('id'),
|
|
sa.UniqueConstraint('id')
|
|
)
|
|
op.create_table('film',
|
|
sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
|
|
sa.Column('name', sa.String(length=255), nullable=True),
|
|
sa.Column('ISO', sa.String(length=10), nullable=True),
|
|
sa.Column('Push_Pull', sa.String(length=10), nullable=True),
|
|
sa.Column('fk_FilmManufacturer_id', sa.Integer(), nullable=True),
|
|
sa.ForeignKeyConstraint(['fk_FilmManufacturer_id'], ['film_manufacturer.id'], ),
|
|
sa.PrimaryKeyConstraint('id'),
|
|
sa.UniqueConstraint('id')
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_table('film')
|
|
op.drop_table('film_manufacturer')
|
|
# ### end Alembic commands ###
|