support toggle.

This commit is contained in:
Bryce
2025-08-05 07:32:56 -07:00
parent 9769b03c0b
commit 1eca7f3ff9
15 changed files with 177 additions and 41 deletions

View File

@@ -0,0 +1,32 @@
"""adding toggle
Revision ID: f8ba65458ba2
Revises: 0bcf54a7f2a7
Create Date: 2025-08-05 06:58:59.265593
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'f8ba65458ba2'
down_revision = '0bcf54a7f2a7'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('folders', schema=None) as batch_op:
batch_op.add_column(sa.Column('organize_enabled', sa.Boolean(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('folders', schema=None) as batch_op:
batch_op.drop_column('organize_enabled')
# ### end Alembic commands ###