Brandon Presley
13b340f5be
Every day at 6am (also immediately when toggled) we will copy the massive.db file to the Download directory.
14 lines
439 B
TypeScript
14 lines
439 B
TypeScript
import {MigrationInterface, QueryRunner} from 'typeorm'
|
|
|
|
export class addBackup1678334268359 implements MigrationInterface {
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner
|
|
.query('ALTER TABLE settings ADD COLUMN backup BOOLEAN DEFAULT false')
|
|
.catch(() => null)
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.dropColumn('settings', 'backup')
|
|
}
|
|
}
|