1
0
Fork 1
mirror of https://example.com synced 2024-11-23 12:56:42 +09:00
firefish/packages/backend/migration/1695334243217-add-post-lang.js

14 lines
296 B
JavaScript
Raw Normal View History

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