2023-08-15 02:52:38 +09:00
|
|
|
/*
|
2024-02-13 02:27:27 +09:00
|
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
2023-08-15 02:52:38 +09:00
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2023-07-28 00:29:33 +09:00
|
|
|
export class AnnouncementDisplayOrder1690463372775 {
|
|
|
|
name = 'AnnouncementDisplayOrder1690463372775'
|
|
|
|
|
|
|
|
async up(queryRunner) {
|
|
|
|
await queryRunner.query(`ALTER TABLE "announcement" ADD "displayOrder" integer NOT NULL DEFAULT '0'`);
|
|
|
|
await queryRunner.query(`CREATE INDEX "IDX_b64d293ca4bef21e91963054b0" ON "announcement" ("displayOrder") `);
|
|
|
|
}
|
|
|
|
|
|
|
|
async down(queryRunner) {
|
|
|
|
await queryRunner.query(`DROP INDEX "public"."IDX_b64d293ca4bef21e91963054b0"`);
|
|
|
|
await queryRunner.query(`ALTER TABLE "announcement" DROP COLUMN "displayOrder"`);
|
|
|
|
}
|
|
|
|
}
|