From 6a07fa78dd23dd617440fb8eb69441b577265b47 Mon Sep 17 00:00:00 2001 From: mattyatea Date: Thu, 16 May 2024 01:08:17 +0900 Subject: [PATCH] update --- packages/backend/migration/1715787239605-loginbonus.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 packages/backend/migration/1715787239605-loginbonus.js diff --git a/packages/backend/migration/1715787239605-loginbonus.js b/packages/backend/migration/1715787239605-loginbonus.js new file mode 100644 index 0000000000..ce7410277f --- /dev/null +++ b/packages/backend/migration/1715787239605-loginbonus.js @@ -0,0 +1,9 @@ +export class Loginbonus1715787239605 { + name = 'Loginbonus1715787239605' + + async up(queryRunner) { + await queryRunner.query(`ALTER TABLE "user_profile" ADD "getPoints" integer NOT NULL DEFAULT '0'`); } + + async down(queryRunner) { + await queryRunner.query(`ALTER TABLE "user_profile" DROP COLUMN "getPoints"`); } +}