crafty-4/app/migrations/20220226_server_order copy.py

17 lines
377 B
Python
Raw Normal View History

2022-07-14 22:26:42 +00:00
# Generated by database migrator
import peewee
def migrate(migrator, database, **kwargs):
migrator.add_columns("servers", show_status=peewee.BooleanField(default=1))
"""
Write your migrations here.
"""
def rollback(migrator, database, **kwargs):
migrator.drop_columns("servers", ["show_status"])
"""
Write your rollback migrations here.
"""