mirror of
https://github.com/spacebarchat/server.git
synced 2026-06-07 06:41:46 +00:00
20 lines
535 B
TypeScript
20 lines
535 B
TypeScript
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
|
|
`);
|
|
}
|
|
|
|
}
|