crafty-4/app/migrations/20220819_role_manager.py

17 lines
365 B
Python
Raw Normal View History

2022-08-20 12:32:39 +00:00
# Generated by database migrator
import peewee
def migrate(migrator, database, **kwargs):
2022-08-20 12:34:38 +00:00
migrator.add_columns("roles", manager=peewee.IntegerField(null=True))
2022-08-20 12:32:39 +00:00
"""
Write your migrations here.
"""
def rollback(migrator, database, **kwargs):
2022-08-20 12:34:38 +00:00
migrator.drop_columns("roles", ["manager"])
2022-08-20 12:32:39 +00:00
"""
Write your rollback migrations here.
"""