88072f0caa04_add_custom_config_in_tenant.py 812 B

1234567891011121314151617181920212223242526272829303132
  1. """add custom config in tenant
  2. Revision ID: 88072f0caa04
  3. Revises: fca025d3b60f
  4. Create Date: 2023-12-14 07:36:50.705362
  5. """
  6. import sqlalchemy as sa
  7. from alembic import op
  8. # revision identifiers, used by Alembic.
  9. revision = '88072f0caa04'
  10. down_revision = '246ba09cbbdb'
  11. branch_labels = None
  12. depends_on = None
  13. def upgrade():
  14. # ### commands auto generated by Alembic - please adjust! ###
  15. with op.batch_alter_table('tenants', schema=None) as batch_op:
  16. batch_op.add_column(sa.Column('custom_config', sa.Text(), nullable=True))
  17. # ### end Alembic commands ###
  18. def downgrade():
  19. # ### commands auto generated by Alembic - please adjust! ###
  20. with op.batch_alter_table('tenants', schema=None) as batch_op:
  21. batch_op.drop_column('custom_config')
  22. # ### end Alembic commands ###