crafty-4/app/migrations/20220312_support_log_status.py
2022-03-13 08:29:26 -04:00

17 lines
373 B
Python

# Generated by database migrator
import peewee
def migrate(migrator, database, **kwargs):
migrator.add_columns('users', preparing=peewee.BooleanField(default=False))
"""
Write your migrations here.
"""
def rollback(migrator, database, **kwargs):
migrator.drop_columns('users', ['preparing'])
"""
Write your rollback migrations here.
"""