crafty-4/app/migrations/20230320_app_id.py
amcmanu3 7c01ccd376 Add server creation process for steamcmd servers.
TODO: Find out what the executables will be called or startup commands..
2023-03-20 21:59:08 -04:00

17 lines
367 B
Python

# 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.
"""