1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-12 13:48:28 +09:00
cherrypick/packages/backend/migration/1699432324194-remoteAvaterDecoration.js
2023-11-14 19:12:46 +09:00

14 lines
493 B
JavaScript

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"`);
}
}