crafty-4/app/migrations/20210915205501_cron_task.py

17 lines
379 B
Python
Raw Normal View History

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