From 4a6eed1185b86a31c4b20e853e9f6744bb0aba6d Mon Sep 17 00:00:00 2001 From: Matthieu Haineault Date: Tue, 9 Sep 2025 09:27:14 -0400 Subject: [PATCH] feat(migration): migration of comment/description change --- .../migration.sql | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 prisma/migrations/20250909132655_refactor_description_to_comment_for_shifts_and_expenses/migration.sql diff --git a/prisma/migrations/20250909132655_refactor_description_to_comment_for_shifts_and_expenses/migration.sql b/prisma/migrations/20250909132655_refactor_description_to_comment_for_shifts_and_expenses/migration.sql new file mode 100644 index 0000000..7082aa6 --- /dev/null +++ b/prisma/migrations/20250909132655_refactor_description_to_comment_for_shifts_and_expenses/migration.sql @@ -0,0 +1,24 @@ +/* + Warnings: + + - You are about to drop the column `description` on the `expenses` table. All the data in the column will be lost. + - You are about to drop the column `description` on the `expenses_archive` table. All the data in the column will be lost. + - You are about to drop the column `description` on the `shifts` table. All the data in the column will be lost. + - You are about to drop the column `description` on the `shifts_archive` table. All the data in the column will be lost. + +*/ +-- AlterTable +ALTER TABLE "public"."expenses" DROP COLUMN "description", +ADD COLUMN "comment" TEXT; + +-- AlterTable +ALTER TABLE "public"."expenses_archive" DROP COLUMN "description", +ADD COLUMN "comment" TEXT; + +-- AlterTable +ALTER TABLE "public"."shifts" DROP COLUMN "description", +ADD COLUMN "comment" TEXT; + +-- AlterTable +ALTER TABLE "public"."shifts_archive" DROP COLUMN "description", +ADD COLUMN "comment" TEXT;