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
This commit is contained in:
xithical 2022-02-27 10:32:26 -06:00
parent 2265adbf82
commit 54d8ee4b7d

View File

@ -0,0 +1,8 @@
# 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')