From 826a5d9612a9396e99d4486adfbd407dd3bf7768 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 2 Oct 2026 08:02:14 +0200 Subject: [PATCH] twenty: run upstream's upgrade command instead of the removed setup-db.ts (#17647) --- ct/twenty.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ct/twenty.sh b/ct/twenty.sh index fe30ea788..830986698 100644 --- a/ct/twenty.sh +++ b/ct/twenty.sh @@ -60,8 +60,9 @@ function update_script() { msg_info "Running Database Migrations" cd /opt/twenty/packages/twenty-server set -a && source /opt/twenty/.env && set +a - $STD npx ts-node ./scripts/setup-db.ts - $STD npx -y typeorm migration:run -d dist/database/typeorm/core/core.datasource + $STD yarn command:prod cache:flush || true + $STD yarn command:prod upgrade + $STD yarn command:prod cache:flush || true msg_ok "Ran Database Migrations" msg_info "Starting Services"