"""auto Revision ID: fa3de05c91fb Revises: cb3ce762cabb Create Date: 2025-06-09 10:06:16.352992 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'fa3de05c91fb' down_revision = 'cb3ce762cabb' branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### op.add_column('plant', sa.Column('mother_uuid', sa.String(length=36), nullable=True)) op.add_column('plant', sa.Column('notes', sa.Text(), nullable=True)) op.add_column('plant', sa.Column('is_active', sa.Boolean(), nullable=False)) op.add_column('plant', sa.Column('featured_media_id', sa.Integer(), nullable=True)) op.create_foreign_key(None, 'plant', 'media', ['featured_media_id'], ['id']) op.create_foreign_key(None, 'plant', 'plant', ['mother_uuid'], ['uuid']) # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### op.drop_constraint(None, 'plant', type_='foreignkey') op.drop_constraint(None, 'plant', type_='foreignkey') op.drop_column('plant', 'featured_media_id') op.drop_column('plant', 'is_active') op.drop_column('plant', 'notes') op.drop_column('plant', 'mother_uuid') # ### end Alembic commands ###