37 lines
970 B
Python
37 lines
970 B
Python
"""empty message
|
|
|
|
Revision ID: ea0fde3014d7
|
|
Revises: 5e6d181b4b74
|
|
Create Date: 2023-10-07 14:32:08.410786
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'ea0fde3014d7'
|
|
down_revision = '5e6d181b4b74'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('site_headers',
|
|
sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
|
|
sa.Column('name', sa.String(length=20), nullable=True),
|
|
sa.Column('description', sa.Text(), nullable=True),
|
|
sa.Column('content', sa.Text(), nullable=True),
|
|
sa.Column('enabled', sa.Boolean(), nullable=True),
|
|
sa.PrimaryKeyConstraint('id'),
|
|
sa.UniqueConstraint('id')
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_table('site_headers')
|
|
# ### end Alembic commands ###
|