blob: e2823a54c4dddeea3e20b549d26aa3402ea9c36a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { MigrationInterface, QueryRunner } from "typeorm";
export class CodeCleanup31660258372154 implements MigrationInterface {
name = 'CodeCleanup31660258372154'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE "users" DROP COLUMN "settings"
`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE "users"
ADD "settings" text NOT NULL
`);
}
}
|