File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,16 +86,13 @@ log "Database connection established"
8686
8787# ---- Step 6: Run migrations ----
8888log " Running database migrations..."
89- if php artisan migrate --force --isolated 2>&1 ; then
89+ # Note: --isolated requires cache_locks table which may not exist on first run
90+ # Use --force only (safe since we're the only instance during startup)
91+ if php artisan migrate --force 2>&1 ; then
9092 log " Migrations completed successfully"
9193else
9294 MIGRATE_EXIT=$?
93- # Exit code 0 means success, non-zero could be a lock (--isolated)
94- if [ " $MIGRATE_EXIT " -eq 0 ]; then
95- log " Migrations completed (no changes needed)"
96- else
97- fatal " Migration failed with exit code $MIGRATE_EXIT "
98- fi
95+ fatal " Migration failed with exit code $MIGRATE_EXIT "
9996fi
10097
10198# ---- Step 7: Cache configuration for production performance ----
You can’t perform that action at this time.
0 commit comments