mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 09:57:29 -07:00
18 lines
536 B
TypeScript
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,
|
|
);
|
|
}
|
|
}
|