0018_notifications.py 322 B

12345678910111213141516
  1. from alembic import op
  2. from zhifu.modules.notifications.models import Notification
  3. revision = "0018_notifications"
  4. down_revision = "0017_storefront"
  5. branch_labels = None
  6. depends_on = None
  7. def upgrade():
  8. Notification.__table__.create(op.get_bind())
  9. def downgrade():
  10. Notification.__table__.drop(op.get_bind())