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

17 lines
375 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):
migrator.add_columns("roles", role_manager=peewee.IntegerField(null=True))
"""
Write your migrations here.
"""
def rollback(migrator, database, **kwargs):
migrator.drop_columns("roles", ["role_manager"])
"""
Write your rollback migrations here.
"""