Skip to content

BeechCMS


BeechCMS / @beechcms/core / getExpectedColumns

Function: getExpectedColumns() ​

getExpectedColumns(seed): SchemaColumn[]

Returns the list of expected columns for a Seed's table. Used to compare current vs expected schema (diffing).

Parameters ​

seed ​

Seed

The seed definition.

Returns ​

SchemaColumn[]

The array of expected schema columns.