mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 01:35:28 +01:00
20 lines
379 B
Python
20 lines
379 B
Python
# Generated by database migrator
|
|
import peewee
|
|
|
|
|
|
def migrate(migrator, database, **kwargs):
|
|
migrator.add_columns("backups", snapshot=peewee.BooleanField(default=False))
|
|
"""
|
|
Write your migrations here.
|
|
"""
|
|
|
|
|
|
def rollback(migrator, database, **kwargs):
|
|
migrator.drop_columns("backups", ["snapshot"])
|
|
"""
|
|
Write your rollback migrations here.
|
|
"""
|
|
|
|
|
|
5
|