Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

ci: move --db-url before --include-all in script

Brad Barbinb069c1852cc8
diff --git a/ci/src/migrations.ts b/ci/src/migrations.ts
index 1a6f3a6191..b9d156b58e 100644
--- a/ci/src/migrations.ts
+++ b/ci/src/migrations.ts
@@ -79,13 +79,13 @@ async function migrate(): Promise<void> {
if (project_id) {
await $$`supabase link`;
} else if (database_url.startsWith("postgresql://")) {
- dbArg = ` --db-url ${database_url}`;
+ dbArg = `--db-url ${database_url}`;
}
console.log(`✅ 🐣 Starting migrations for ${customer.id}`);
- await $$`supabase db push --include-all${dbArg}`;
+ await $$`supabase db push ${dbArg} --include-all`;
console.log(`✅ 🐣 Starting deployments for ${customer.id}`);
- await $$`supabase functions deploy${dbArg}`;
+ await $$`supabase functions deploy ${dbArg}`;
if (!customer.seeded) {
try {