Skip to content

BeechCMS


BeechCMS / @beechcms/core / generateDropColumn

Function: generateDropColumn() ​

generateDropColumn(seed, alias): string[]

Returns the DROP COLUMN SQL statements for removing a single field. Drops the junction table for multi-relations, or alters the tables to drop the column.

Parameters ​

seed ​

Seed

The seed definition.

alias ​

string

The alias of the branch to drop.

Returns ​

string[]

An array of SQL statements.