From 4f1ec58a99d2957196d1c5166862e2ab84b33b39 Mon Sep 17 00:00:00 2001 From: josedario87 Date: Fri, 30 May 2025 16:27:32 -0600 Subject: [PATCH] nueva migracion agregada --- .../20250530222717_init/migration.sql | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 api/prisma/migrations/20250530222717_init/migration.sql diff --git a/api/prisma/migrations/20250530222717_init/migration.sql b/api/prisma/migrations/20250530222717_init/migration.sql new file mode 100644 index 0000000..f6c8cd5 --- /dev/null +++ b/api/prisma/migrations/20250530222717_init/migration.sql @@ -0,0 +1,18 @@ +-- AlterTable +ALTER TABLE "Asistencia" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc'), +ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc'), +ALTER COLUMN "entrada" SET DEFAULT (now() AT TIME ZONE 'utc'); + +-- AlterTable +ALTER TABLE "Cliente" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc'), +ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc'); + +-- AlterTable +ALTER TABLE "Planilla" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc'), +ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc'); + +-- AlterTable +ALTER TABLE "TareaRealizada" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc'); + +-- AddForeignKey +ALTER TABLE "TareaRealizada" ADD CONSTRAINT "TareaRealizada_planilla_id_fkey" FOREIGN KEY ("planilla_id") REFERENCES "Planilla"("id") ON DELETE SET NULL ON UPDATE CASCADE;