35 lines
837 B
Python
35 lines
837 B
Python
|
"""empty message
|
||
|
|
||
|
Revision ID: e345198c92d5
|
||
|
Revises: 4a9d1ba8736e
|
||
|
Create Date: 2023-04-12 15:57:57.258269
|
||
|
|
||
|
"""
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = 'e345198c92d5'
|
||
|
down_revision = '4a9d1ba8736e'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.create_table('feedbacks',
|
||
|
sa.Column('id', sa.Integer(), nullable=False),
|
||
|
sa.Column('name', sa.String(length=64), nullable=True),
|
||
|
sa.Column('feedback', sa.Text(), nullable=False),
|
||
|
sa.PrimaryKeyConstraint('id'),
|
||
|
sa.UniqueConstraint('name')
|
||
|
)
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.drop_table('feedbacks')
|
||
|
# ### end Alembic commands ###
|