Sharkey/packages/backend/migration/1752607599852-split-descriptions.js
2025-07-15 18:37:29 -03:00

12 lines
363 B
JavaScript

export class SplitDescriptions1752607599852 {
name = 'SplitDescriptions1752607599852'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" ADD COLUMN "about" TEXT`);
await queryRunner.query(`UPDATE "meta" SET "about" = "description"`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "about"`);
}
}