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: reset the database

Brad Barbinea694e0fd81e
diff --git a/ci/src/migrations.ts b/ci/src/migrations.ts
index 94732df3ec..2f68849525 100644
--- a/ci/src/migrations.ts
+++ b/ci/src/migrations.ts
@@ -56,6 +56,8 @@ async function migrate(): Promise<void> {
});
await $$`supabase link`;
+ console.log(`✅ 🐣 Resetting database for ${customer.name}`);
+ await $$`supabase db reset --linked`;
console.log(`✅ 🐣 Starting migrations for ${customer.name}`);
await $$`supabase db push`;
console.log(`✅ 🐣 Starting deployments for ${customer.name}`);