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:
@@ -6,7 +6,7 @@ MAX_RETRIES=30
|
|||||||
RETRY=0
|
RETRY=0
|
||||||
|
|
||||||
while [ $RETRY -lt $MAX_RETRIES ]; do
|
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."
|
echo "Database schema synced successfully."
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user