33 lines
808 B
Python
33 lines
808 B
Python
"""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 ###
|