summary refs log tree commit diff
path: root/src/util/migration/postgres
diff options
context:
space:
mode:
authorTomatoCake <60300461+DEVTomatoCake@users.noreply.github.com>2024-07-05 07:43:50 +0200
committerTomatoCake <60300461+DEVTomatoCake@users.noreply.github.com>2024-07-05 07:43:50 +0200
commitc52d6c49a3dac5123f5ca8d157e4a951f8b4e972 (patch)
tree7a3e175d01caf9c2bc33949de5f0542f7d673a88 /src/util/migration/postgres
parentDon't embed links in <> (diff)
downloadserver-ts-c52d6c49a3dac5123f5ca8d157e4a951f8b4e972.tar.xz
Add new message flags once again
Diffstat (limited to 'src/util/migration/postgres')
-rw-r--r--src/util/migration/postgres/1720157926878-messagePollObject.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util/migration/postgres/1720157926878-messagePollObject.ts b/src/util/migration/postgres/1720157926878-messagePollObject.ts
new file mode 100644

index 000000000..7c3c95a0f --- /dev/null +++ b/src/util/migration/postgres/1720157926878-messagePollObject.ts
@@ -0,0 +1,13 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class MessagePollObject1720157926878 implements MigrationInterface { + name = "MessagePollObject1720157926878"; + + public async up(queryRunner: QueryRunner): Promise<void> { + await queryRunner.query("ALTER TABLE messages ADD poll text NULL"); + } + + public async down(queryRunner: QueryRunner): Promise<void> { + await queryRunner.query("ALTER TABLE messages DROP COLUMN poll"); + } +}