crafty-4/app/migrations/20230126_master_server.py
2023-01-26 19:21:39 -05:00

19 lines
417 B
Python

# Generated by database migrator
import peewee
def migrate(migrator, database, **kwargs):
migrator.add_columns(
"crafty_settings", master_server_dir=peewee.CharField(default="")
)
"""
Write your migrations here.
"""
def rollback(migrator, database, **kwargs):
migrator.drop_columns("crafty_settings", ["master_server_dir"])
"""
Write your rollback migrations here.
"""