crafty-4/app/migrations/20210915205501_users_log_path.py

17 lines
373 B
Python
Raw Permalink Normal View History

2022-01-14 01:42:53 +00:00
# Generated by database migrator
import peewee
2022-01-14 01:42:53 +00:00
def migrate(migrator, database, **kwargs):
migrator.add_columns("users", support_logs=peewee.CharField(default=""))
2022-01-14 01:42:53 +00:00
"""
Write your migrations here.
"""
def rollback(migrator, database, **kwargs):
migrator.drop_columns("users", ["support_logs"])
2022-01-14 01:42:53 +00:00
"""
Write your rollback migrations here.
"""