hippofish/packages/backend/migration/1708452631156-drop-user-profile-language.js

14 lines
343 B
JavaScript
Raw Normal View History

2024-02-20 19:25:45 +01:00
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)`,
);
}
}