crafty-4/app/migrations/20210915205501_waiting_start_1 copy.py

17 lines
364 B
Python
Raw Normal View History

2022-04-03 01:25:26 +00:00
# Generated by database migrator
import peewee
def migrate(migrator, database, **kwargs):
migrator.add_columns("users", hints=peewee.BooleanField(default=True))
"""
Write your migrations here.
"""
def rollback(migrator, database, **kwargs):
migrator.drop_columns("users", ["hints"])
"""
Write your rollback migrations here.
"""