feat: add music to front page of instance (#6)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class AddMusicFieldsToMeta1743894419864 implements MigrationInterface {
|
||||
name = 'AddMusicFieldsToMeta1743894419864'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "meta" ADD "musicSource" character varying(1024)`);
|
||||
await queryRunner.query(`ALTER TABLE "meta" ADD "musicEnabled" boolean NOT NULL DEFAULT false`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "musicEnabled"`);
|
||||
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "musicSource"`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user