firefish/packages/backend/migration/1695334243217-add-post-lang.js

14 lines
296 B
JavaScript
Raw Permalink Normal View History

2023-09-22 14:02:48 +09:00
export class AddPostLang1695334243217 {
name = "AddPostLang1695334243217";
async up(queryRunner) {
await queryRunner.query(
`ALTER TABLE "note" ADD "lang" character varying(10)`,
);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "note" DROP COLUMN "lang"`);
}
}