hippofish/packages/backend/migration/1708452631156-drop-user-profile-language.js
2024-02-21 03:27:33 +09:00

13 lines
343 B
JavaScript

export class DropUserProfileLanguage1708452631156 {
name = "DropUserProfileLanguage1708452631156";
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "user_profile" DROP COLUMN "lang"`);
}
async down(queryRunner) {
await queryRunner.query(
`ALTER TABLE "user_profile" ADD COLUMN "lang" character varying(32)`,
);
}
}