summary refs log tree commit diff
path: root/src/util/migration/postgres
diff options
context:
space:
mode:
authorCyberL1 <cyber.hf18@gmail.com>2025-10-17 13:01:36 +0200
committerRory& <root@rory.gay>2025-10-17 14:32:22 +0200
commit81d4f1f3107e518b8a346cd0a0501999916697fa (patch)
tree43a26397fbc43373d51fa97922ed39bae233e3f3 /src/util/migration/postgres
parentfix: do the same for applicaiton_commands (diff)
downloadserver-ts-81d4f1f3107e518b8a346cd0a0501999916697fa.tar.xz
feat: interactions (incomplete)
Diffstat (limited to 'src/util/migration/postgres')
-rw-r--r--src/util/migration/postgres/1760694225225-message_interaction_metadata.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util/migration/postgres/1760694225225-message_interaction_metadata.ts b/src/util/migration/postgres/1760694225225-message_interaction_metadata.ts
new file mode 100644

index 00000000..317361da --- /dev/null +++ b/src/util/migration/postgres/1760694225225-message_interaction_metadata.ts
@@ -0,0 +1,13 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class MessageInteractionMetadata1760694225225 implements MigrationInterface { + name = "MessageInteractionMetadata1760694225225"; + + public async up(queryRunner: QueryRunner): Promise<void> { + await queryRunner.query(`ALTER TABLE "messages" ADD "interaction_metadata" text`); + } + + public async down(queryRunner: QueryRunner): Promise<void> { + await queryRunner.query(`ALTER TABLE "messages" DROP COLUMN "interaction_metadata"`); + } +}