1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-27 22:38:34 +09:00
cherrypick/packages/backend/migration/1699432324194-remoteAvaterDecoration.js
2024-05-13 15:36:51 +09:00

19 lines
630 B
JavaScript

/*
* SPDX-FileCopyrightText: syuilo and misskey-project & noridev and cherrypick-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
export class RemoteAvaterDecoration1699432324194 {
name = 'RemoteAvaterDecoration1699432324194'
async up(queryRunner) {
queryRunner.query(`ALTER TABLE "avatar_decoration" ADD "remoteId" varchar(32)`);
queryRunner.query(`ALTER TABLE "avatar_decoration" ADD "host" varchar(128)`);
}
async down(queryRunner) {
queryRunner.query(`ALTER TABLE "avatar_decoration" DROP COLUMN "host"`);
queryRunner.query(`ALTER TABLE "avatar_decoration" DROP COLUMN "remoteId"`);
}
}