fix: revert entrypoint to migrate deploy, add proper migration file
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 1m1s
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 1m1s
Create migration 20260426130000_add_agent_schedule_fields with the 3 new Agent columns (scheduledTime, scheduledDay, timezone). Reverts entrypoint back to prisma migrate deploy. Removes redundant migration step from deploy.yaml. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
echo "Syncing database schema..."
|
||||
node ./node_modules/prisma/build/index.js db push --skip-generate
|
||||
echo "Running Prisma migrations..."
|
||||
node ./node_modules/prisma/build/index.js migrate deploy
|
||||
|
||||
echo "Starting server..."
|
||||
exec node server.js
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
-- AlterTable: Agent
|
||||
ALTER TABLE "Agent" ADD COLUMN "scheduledTime" TEXT DEFAULT '08:00';
|
||||
ALTER TABLE "Agent" ADD COLUMN "scheduledDay" INTEGER;
|
||||
ALTER TABLE "Agent" ADD COLUMN "timezone" TEXT;
|
||||
Reference in New Issue
Block a user