34 lines
850 B
Python
34 lines
850 B
Python
"""User custom tile layer
|
|
|
|
Revision ID: 7c0ec2b61abb
|
|
Revises: 1cc13f8893ad
|
|
Create Date: 2025-08-02 20:17:08.675700
|
|
|
|
"""
|
|
|
|
import sqlalchemy as sa
|
|
import sqlmodel.sql.sqltypes
|
|
from alembic import op
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = "7c0ec2b61abb"
|
|
down_revision = "1cc13f8893ad"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table("user", schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column("tile_layer", sqlmodel.sql.sqltypes.AutoString(), nullable=True))
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table("user", schema=None) as batch_op:
|
|
batch_op.drop_column("tile_layer")
|
|
|
|
# ### end Alembic commands ###
|