API & Client - add a user preference for dark mode
This commit is contained in:
@ -0,0 +1,34 @@
|
||||
"""add dark theme preferences
|
||||
|
||||
Revision ID: 14f48e46f320
|
||||
Revises: 24eb097614e4
|
||||
Create Date: 2023-12-16 18:35:31.377007
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '14f48e46f320'
|
||||
down_revision = '24eb097614e4'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('users', schema=None) as batch_op:
|
||||
batch_op.add_column(
|
||||
sa.Column('use_dark_mode', sa.Boolean(), nullable=True)
|
||||
)
|
||||
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('users', schema=None) as batch_op:
|
||||
batch_op.drop_column('use_dark_mode')
|
||||
|
||||
# ### end Alembic commands ###
|
Reference in New Issue
Block a user