db cleanups and logging for od

This commit is contained in:
2026-02-20 09:58:20 -06:00
parent 597d990a69
commit 2d1f613d39
17 changed files with 2452 additions and 53 deletions

View File

@@ -0,0 +1 @@
CREATE INDEX "idx_job_audit_logs_cleanup" ON "job_audit_log" USING btree ("start_at","id");

View File

@@ -0,0 +1,4 @@
ALTER TABLE "opendock.apt" RENAME TO "opendock_apt";--> statement-breakpoint
ALTER TABLE "opendock_apt" DROP CONSTRAINT "opendock.apt_release_unique";--> statement-breakpoint
ALTER TABLE "job_audit_log" ADD COLUMN "created_at" timestamp DEFAULT now();--> statement-breakpoint
ALTER TABLE "opendock_apt" ADD CONSTRAINT "opendock_apt_release_unique" UNIQUE("release");

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -85,6 +85,20 @@
"when": 1771515240318,
"tag": "0011_eminent_iron_patriot",
"breakpoints": true
},
{
"idx": 12,
"version": "7",
"when": 1771537852152,
"tag": "0012_fantastic_randall_flagg",
"breakpoints": true
},
{
"idx": 13,
"version": "7",
"when": 1771598443244,
"tag": "0013_flaky_quicksilver",
"breakpoints": true
}
]
}