1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-13 14:18:12 +09:00
hotomoe/packages/backend/migration/1723311628855-mutuallinks.js
2024-08-11 08:32:14 +09:00

12 lines
364 B
JavaScript

export class Mutuallinks1723311628855 {
name = 'Mutuallinks1723311628855'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "user_profile" ADD "mutualLinkSections" jsonb NOT NULL DEFAULT '[]'`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "user_profile" DROP COLUMN "mutualLinkSections"`);
}
}