Number entries on publish, delete media, read the cover

- drafts stay unnumbered, the number is handed out when an entry goes live
- DELETE /api/v1/media/:id and a delete control in the media library
- cover_media_id in the draft read, coverMediaId and coverUrl in the archive read
This commit is contained in:
Matthias G
2026-08-01 12:25:01 +02:00
parent afaa323848
commit 2fd71fd406
31 changed files with 2286 additions and 76 deletions
+2
View File
@@ -0,0 +1,2 @@
ALTER TABLE "post" ALTER COLUMN "number" DROP NOT NULL;--> statement-breakpoint
UPDATE "post" SET "number" = NULL WHERE "status" = 'draft';