jormungandr-bite/packages/backend/src/migration/1576269851876-TalkFederationId.ts
2023-10-13 18:44:25 +02:00

18 lines
536 B
TypeScript

import { MigrationInterface, QueryRunner } from "typeorm";
export class TalkFederationId1576269851876 implements MigrationInterface {
constructor() {
this.name = "TalkFederationId1576269851876";
}
async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "messaging_message" ADD "uri" character varying(512)`,
undefined,
);
}
async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "messaging_message" DROP COLUMN "uri"`,
undefined,
);
}
}