mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2025-01-23 05:52:54 +09:00
15 lines
507 B
TypeScript
15 lines
507 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
export class instanceFavicon1603781553011 implements MigrationInterface {
|
|
constructor() {
|
|
this.name = "instanceFavicon1603781553011";
|
|
}
|
|
async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(
|
|
`ALTER TABLE "instance" ADD "faviconUrl" character varying(256) DEFAULT null`,
|
|
);
|
|
}
|
|
async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "instance" DROP COLUMN "faviconUrl"`);
|
|
}
|
|
}
|