summary refs log tree commit diff
path: root/src/database/migration/postgres/1765967660704-DropExtendedSettings.ts
blob: 749058a8928aa09effe70a324b6c5eb61cb6ea50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { MigrationInterface, QueryRunner } from "typeorm";

export class DropExtendedSettings1765967660704 implements MigrationInterface {
    name = "DropExtendedSettings1765967660704";

    public async up(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`ALTER TABLE "users" DROP COLUMN "extended_settings"`);
    }

    public async down(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`ALTER TABLE "users" ADD "extended_settings" text NOT NULL`);
    }
}