35 lines
841 B
Python
35 lines
841 B
Python
"""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 ###
|