2fd71fd406
- 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
2 lines
139 B
SQL
2 lines
139 B
SQL
ALTER TABLE "post" ALTER COLUMN "number" DROP NOT NULL;--> statement-breakpoint
|
|
UPDATE "post" SET "number" = NULL WHERE "status" = 'draft'; |