f9107f83abab_add_desc_for_apps.py 842 B

1234567891011121314151617181920212223242526272829303132
  1. """add desc for apps
  2. Revision ID: f9107f83abab
  3. Revises: cc04d0998d4d
  4. Create Date: 2024-02-28 08:16:14.090481
  5. """
  6. import sqlalchemy as sa
  7. from alembic import op
  8. # revision identifiers, used by Alembic.
  9. revision = 'f9107f83abab'
  10. down_revision = 'cc04d0998d4d'
  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('apps', schema=None) as batch_op:
  16. batch_op.add_column(sa.Column('description', sa.Text(), server_default=sa.text("''::character varying"), nullable=False))
  17. # ### end Alembic commands ###
  18. def downgrade():
  19. # ### commands auto generated by Alembic - please adjust! ###
  20. with op.batch_alter_table('apps', schema=None) as batch_op:
  21. batch_op.drop_column('description')
  22. # ### end Alembic commands ###