tenant deletion/reset

This commit is contained in:
2025-11-11 12:17:24 +01:00
parent 4f29ff73c6
commit 8751637b92
15 changed files with 1015 additions and 27 deletions
@@ -0,0 +1,14 @@
ALTER TABLE jobs
ALTER COLUMN tenant_id DROP NOT NULL;
ALTER TABLE jobs
DROP CONSTRAINT jobs_tenant_id_fkey;
ALTER TABLE jobs
ADD CONSTRAINT jobs_tenant_id_fkey
FOREIGN KEY (tenant_id)
REFERENCES tenants(id)
ON DELETE SET NULL;
ALTER TABLE jobs
ADD COLUMN result JSONB;