crafty-4/app/migrations/20230120_backup_command.py
2023-01-20 17:35:30 -05:00

17 lines
367 B
Python

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