BeechCMS / @beechcms/core / generateDraftTable
Function: generateDraftTable()
generateDraftTable(
seed):string|null
Generates the SQL CREATE TABLE IF NOT EXISTS content_{slug}_drafts statement for seeds that allow drafts.
Parameters
seed
The seed definition.
Returns
string | null
The draft table CREATE TABLE SQL statement, or null if drafts are disabled.