mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 04:59:06 +01:00
6b45b7019c
This does not affect existing instances.
14 lines
523 B
TypeScript
14 lines
523 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class SecureModeDefaults1697649475796 implements MigrationInterface {
|
|
name = 'SecureModeDefaults1697649475796'
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "secureMode" SET DEFAULT true`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "secureMode" SET DEFAULT false`);
|
|
}
|
|
}
|