"""Add new features Revision ID: ed07e785afd5 Revises: 9d9195d6b9a7 Create Date: 2025-08-13 14:55:02.023809 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'ed07e785afd5' down_revision = '9d9195d6b9a7' branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### op.create_table('PaymentPlans', sa.Column('id', sa.Integer(), nullable=False), sa.Column('Splynx_ID', sa.Integer(), nullable=True), sa.Column('Amount', sa.Float(), nullable=True), sa.Column('Frequency', sa.String(length=50), nullable=True), sa.Column('Day', sa.String(length=50), nullable=True), sa.Column('Start_Date', sa.DateTime(), nullable=True), sa.Column('Created', sa.DateTime(), nullable=False), sa.Column('Who', sa.Integer(), nullable=False), sa.Column('Enabled', sa.Boolean(), nullable=True), sa.ForeignKeyConstraint(['Who'], ['Users.id'], ), sa.PrimaryKeyConstraint('id') ) with op.batch_alter_table('SinglePayments', schema=None) as batch_op: batch_op.add_column(sa.Column('PaymentPlan_ID', sa.Integer(), nullable=True)) batch_op.create_foreign_key(None, 'PaymentPlans', ['PaymentPlan_ID'], ['id']) # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### with op.batch_alter_table('SinglePayments', schema=None) as batch_op: batch_op.drop_constraint(None, type_='foreignkey') batch_op.drop_column('PaymentPlan_ID') op.drop_table('PaymentPlans') # ### end Alembic commands ###