mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-16 01:05:51 +01:00
6893e5d60b
b7fd6bf33a835fd73c2a86eb007074d3680f6efd によるリワーク This reverts commiteeef3965b7
This reverts commit04fefb2056
This reverts commit576251200f
18 lines
701 B
JavaScript
18 lines
701 B
JavaScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
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"`);
|
|
}
|
|
}
|