crafty-4/app/migrations/20230320_app_id.py

17 lines
367 B
Python
Raw Normal View History

# Generated by database migrator
import peewee
def migrate(migrator, database, **kwargs):
migrator.add_columns("servers", app_id=peewee.IntegerField(null=True))
"""
Write your migrations here.
"""
def rollback(migrator, database, **kwargs):
migrator.drop_columns("servers", ["app_id"])
"""
Write your rollback migrations here.
"""