mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 19:43:16 +00:00
14 lines
490 B
TypeScript
14 lines
490 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class MemberFlags1772404321400 implements MigrationInterface {
|
|
name = "MemberFlags1772404321400";
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "members" ADD "flags" integer NOT NULL DEFAULT '0'`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "members" DROP COLUMN "flags"`);
|
|
}
|
|
}
|