crafty-4/app/migrations/20220227162446_backup_options.py
xithical 54d8ee4b7d Add migration for excluded backup directories
Changes the column 'directories' in the backups table to 'excluded_dirs' so that we're only storing a list of excluded directories
2022-02-27 10:32:26 -06:00

8 lines
250 B
Python

# Generated by database migrator
import peewee
def migrate(migrator, db):
migrator.rename_column('backups', 'directories', 'excluded_dirs')
def rollback(migrator, db):
migrator.rename_column('backups', 'excluded_dirs', 'directories')