Massive/migrations/1667186139844-add-sound.ts

14 lines
424 B
TypeScript
Raw Permalink Normal View History

import {MigrationInterface, QueryRunner} from 'typeorm'
2022-10-31 04:05:31 +00:00
export class addSound1667186139844 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner
2022-11-01 07:00:24 +00:00
.query('ALTER TABLE settings ADD COLUMN sound TEXT NULL')
.catch(() => null)
2022-10-31 04:05:31 +00:00
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.dropColumn('settings', 'sound')
2022-10-31 04:05:31 +00:00
}
}