EditionPN/migrations/versions/be67c6934c05_pn_table.py

35 lines
841 B
Python
Raw Normal View History

2021-05-06 10:26:28 +02:00
"""PN table
Revision ID: be67c6934c05
Revises:
Create Date: 2021-05-03 17:01:39.845539
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'be67c6934c05'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('PN',
sa.Column('code', sa.String(length=3), nullable=False),
sa.Column('nom', sa.String(length=255), nullable=True),
sa.Column('diminutif', sa.String(length=30), nullable=True),
sa.Column('description', sa.Text(), nullable=True),
sa.PrimaryKeyConstraint('code')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('PN')
# ### end Alembic commands ###