From 0d8de609c3bb6f6800d3166f3178493ecf8b3da7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Rod=C3=A9s-Guirao?= Date: Mon, 6 Jan 2025 20:46:49 +0100 Subject: [PATCH] Update db table types (#4388) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * change db table type * 🤖 style: prettify code --- ...8395813-UpdateHousekeepingSuggestedReviews.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 db/migration/1736188395813-UpdateHousekeepingSuggestedReviews.ts diff --git a/db/migration/1736188395813-UpdateHousekeepingSuggestedReviews.ts b/db/migration/1736188395813-UpdateHousekeepingSuggestedReviews.ts new file mode 100644 index 0000000000..6ce84a20a4 --- /dev/null +++ b/db/migration/1736188395813-UpdateHousekeepingSuggestedReviews.ts @@ -0,0 +1,16 @@ +import { MigrationInterface, QueryRunner } from "typeorm" + +export class HousekeepingSuggestedReviews1736188395813 + implements MigrationInterface +{ + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`-- sql + ALTER TABLE housekeeping_suggested_reviews + MODIFY COLUMN objectId INTEGER NOT NULL; + `) + } + + public async down(): Promise {} +} + +// ALTER TABLE employees