mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 10:53:01 +00:00
[rel/1518] Member flags
This commit is contained in:
1 parent
c0e757408a
commit
eaf697eb19
3 files changed
+20
-1
No files matched your search
@@ -0,0 +1,13 @@
|
||||
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"`);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user