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-08-11 06:40:42 +0200
committerTomatoCake <60300461+DEVTomatoCake@users.noreply.github.com>2024-08-11 06:40:42 +0200
commitea3047890bf06dfe8b2de470f5b17ca9f40c1921 (patch)
tree4dc89ee10702a7b91af9ff14f3b6150669cff88b /src/util/migration/postgres
parentFix chunk_count & not_found (diff)
downloadserver-ts-ea3047890bf06dfe8b2de470f5b17ca9f40c1921.tar.xz
Fix issues with requesting presences
Diffstat (limited to 'src/util/migration/postgres')
-rw-r--r--src/util/migration/postgres/1723347738541-client_status.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/util/migration/postgres/1723347738541-client_status.ts b/src/util/migration/postgres/1723347738541-client_status.ts
new file mode 100644

index 000000000..35d9391ff --- /dev/null +++ b/src/util/migration/postgres/1723347738541-client_status.ts
@@ -0,0 +1,17 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class client_status1723347738541 implements MigrationInterface { + name = "client_status1723347738541"; + + public async up(queryRunner: QueryRunner): Promise<void> { + await queryRunner.query( + "ALTER TABLE sessions ADD client_status text NULL", + ); + } + + public async down(queryRunner: QueryRunner): Promise<void> { + await queryRunner.query( + "ALTER TABLE sessions DROP COLUMN client_status", + ); + } +}