fix migration error at fleet page

This commit is contained in:
root
2026-05-25 00:58:10 -04:00
parent 5ef9efb8a9
commit 95376d3223
6 changed files with 16 additions and 14 deletions
+5 -3
View File
@@ -20,13 +20,15 @@ if [ -n "$STORAGE_ROOT" ]; then
fi
fi
echo "[migrate] Applying pending migrations"
npm run db:deploy
if [ -f "$MARKER_FILE" ]; then
echo "[migrate] Existing dev database detected; skipping deploy and seed"
echo "[migrate] Existing dev database detected; skipping seed"
exit 0
fi
echo "[migrate] First dev bootstrap; applying schema and seed data"
npm run db:deploy
echo "[migrate] First dev bootstrap; seeding data"
npm run db:seed
touch "$MARKER_FILE"