fix: harden download history and attempt ledger

This commit is contained in:
Leon Tonhäuser committed 2026-08-10 16:45:40 +02:00
1 parent 510fde7afa
commit ba673ad732
19 files changed
+2287 -311

No files matched your search

@@ -0,0 +1,2 @@
CREATE INDEX "download_events_editorial_authorized_id_idx" ON "download_events" USING btree ("editorial_account_id","authorized_at" DESC NULLS LAST,"id" DESC NULLS LAST);--> statement-breakpoint
CREATE INDEX "usages_editorial_created_id_idx" ON "usages" USING btree ("editorial_account_id","created_at" DESC NULLS LAST,"id" DESC NULLS LAST);
File diff suppressed because it is too large. Load diff
+8 -1
View File
@@ -29,6 +29,13 @@
"when": 1786358492749,
"tag": "0003_stream_delivery",
"breakpoints": true
},
{
"idx": 4,
"version": "7",
"when": 1786363479515,
"tag": "0004_download_history_indexes",
"breakpoints": true
}
]
}
}