Skip to content

BeechCMS


BeechCMS / @beechcms/core / generateAddColumn

Function: generateAddColumn() ​

generateAddColumn(seed, branch): string

Generates the SQL ALTER TABLE content_{slug} ADD COLUMN {alias} {type} statement.

Parameters ​

seed ​

Seed

The seed definition.

branch ​

Branch

The branch definition for the new column.

Returns ​

string

The ALTER TABLE SQL statement.