2023-07-27 05:31:52 +00:00
|
|
|
/*
|
2024-02-13 15:59:27 +00:00
|
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
2023-07-27 05:31:52 +00:00
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
2022-02-28 15:07:03 +00:00
|
|
|
|
|
|
|
export class nodeinfo1572760203493 {
|
2021-11-11 17:02:25 +00:00
|
|
|
async up(queryRunner) {
|
2019-11-05 13:14:42 +00:00
|
|
|
await queryRunner.query(`ALTER TABLE "instance" DROP COLUMN "system"`, undefined);
|
|
|
|
await queryRunner.query(`ALTER TABLE "instance" ADD "softwareName" character varying(64) DEFAULT null`, undefined);
|
|
|
|
await queryRunner.query(`ALTER TABLE "instance" ADD "softwareVersion" character varying(64) DEFAULT null`, undefined);
|
|
|
|
await queryRunner.query(`ALTER TABLE "instance" ADD "openRegistrations" boolean DEFAULT null`, undefined);
|
|
|
|
await queryRunner.query(`ALTER TABLE "instance" ADD "name" character varying(256) DEFAULT null`, undefined);
|
|
|
|
await queryRunner.query(`ALTER TABLE "instance" ADD "description" character varying(4096) DEFAULT null`, undefined);
|
|
|
|
await queryRunner.query(`ALTER TABLE "instance" ADD "maintainerName" character varying(128) DEFAULT null`, undefined);
|
|
|
|
await queryRunner.query(`ALTER TABLE "instance" ADD "maintainerEmail" character varying(256) DEFAULT null`, undefined);
|
|
|
|
await queryRunner.query(`ALTER TABLE "instance" ADD "infoUpdatedAt" TIMESTAMP WITH TIME ZONE`, undefined);
|
|
|
|
}
|
2021-11-11 17:02:25 +00:00
|
|
|
async down(queryRunner) {
|
2019-11-05 13:14:42 +00:00
|
|
|
await queryRunner.query(`ALTER TABLE "instance" DROP COLUMN "infoUpdatedAt"`, undefined);
|
|
|
|
await queryRunner.query(`ALTER TABLE "instance" DROP COLUMN "maintainerEmail"`, undefined);
|
|
|
|
await queryRunner.query(`ALTER TABLE "instance" DROP COLUMN "maintainerName"`, undefined);
|
|
|
|
await queryRunner.query(`ALTER TABLE "instance" DROP COLUMN "description"`, undefined);
|
|
|
|
await queryRunner.query(`ALTER TABLE "instance" DROP COLUMN "name"`, undefined);
|
|
|
|
await queryRunner.query(`ALTER TABLE "instance" DROP COLUMN "openRegistrations"`, undefined);
|
|
|
|
await queryRunner.query(`ALTER TABLE "instance" DROP COLUMN "softwareVersion"`, undefined);
|
|
|
|
await queryRunner.query(`ALTER TABLE "instance" DROP COLUMN "softwareName"`, undefined);
|
|
|
|
await queryRunner.query(`ALTER TABLE "instance" ADD "system" character varying(64)`, undefined);
|
|
|
|
}
|
|
|
|
}
|