forked from purplebored/purplebored.pl
38 lines
857 B
Python
38 lines
857 B
Python
"""Initial migration
|
|
|
|
Revision ID: 57fa0d90dc93
|
|
Revises:
|
|
Create Date: 2025-07-30 20:21:21.163194
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
import pbpl
|
|
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '57fa0d90dc93'
|
|
down_revision = None
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('text_model',
|
|
sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
|
|
sa.Column('text', sa.Unicode(length=2048), nullable=False),
|
|
sa.Column('date', sa.DateTime(), nullable=False),
|
|
sa.PrimaryKeyConstraint('id'),
|
|
sa.UniqueConstraint('id')
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_table('text_model')
|
|
# ### end Alembic commands ###
|