Private
Public Access
1
0

Fix deploy: add --accept-data-loss for search_vector column

prisma db push refuses to sync when the search_vector generated
column exists in the DB but not in the schema. The column is
managed by setup-search.sql which runs immediately after.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Catherine Renelle
2026-02-26 20:12:46 -05:00
parent 420ff1e715
commit 80641b6058
+1 -1
View File
@@ -6,7 +6,7 @@ MAX_RETRIES=30
RETRY=0
while [ $RETRY -lt $MAX_RETRIES ]; do
if npx prisma db push --skip-generate 2>&1; then
if npx prisma db push --skip-generate --accept-data-loss 2>&1; then
echo "Database schema synced successfully."
break
fi