jormungandr-bite/packages/backend/src/migration/1576269851876-TalkFederationId.ts

19 lines
536 B
TypeScript
Raw Normal View History

import { MigrationInterface, QueryRunner } from "typeorm";
export class TalkFederationId1576269851876 implements MigrationInterface {
2023-04-06 19:56:46 -06:00
constructor() {
this.name = "TalkFederationId1576269851876";
}
async up(queryRunner: QueryRunner): Promise<void> {
2023-04-06 19:56:46 -06:00
await queryRunner.query(
`ALTER TABLE "messaging_message" ADD "uri" character varying(512)`,
undefined,
);
}
async down(queryRunner: QueryRunner): Promise<void> {
2023-04-06 19:56:46 -06:00
await queryRunner.query(
`ALTER TABLE "messaging_message" DROP COLUMN "uri"`,
undefined,
);
}
2021-11-11 10:02:25 -07:00
}