fix(db): add impersonation_sessions to seed TRUNCATE chain (GRO-372) #200
@@ -432,7 +432,7 @@ async function seed() {
|
|||||||
|
|
||||||
// Truncate downstream tables before services upsert — clears stale appointments
|
// Truncate downstream tables before services upsert — clears stale appointments
|
||||||
// from prior seed runs so the FK constraint on service_id is never violated
|
// from prior seed runs so the FK constraint on service_id is never violated
|
||||||
await db.execute(sql`TRUNCATE appointments, invoices, invoice_line_items, invoice_tip_splits, grooming_visit_logs CASCADE`);
|
await db.execute(sql`TRUNCATE impersonation_sessions, impersonation_audit_logs, appointments, invoices, invoice_line_items, invoice_tip_splits, grooming_visit_logs CASCADE`);
|
||||||
|
|
||||||
// ── Services ──
|
// ── Services ──
|
||||||
// Upsert services using name as unique key. With deterministic IDs in
|
// Upsert services using name as unique key. With deterministic IDs in
|
||||||
|
|||||||
Reference in New Issue
Block a user