Skip to content

BeechCMS


BeechCMS / @beechcms/core / generateDropTable

Function: generateDropTable() ​

generateDropTable(seed): string[]

Returns every DROP TABLE IF EXISTS needed to fully remove a content type: the main table, the drafts table (if drafts enabled), full-text search table/triggers, and junction tables.

Parameters ​

seed ​

Seed

The seed definition.

Returns ​

string[]

An array of DROP TABLE / DROP TRIGGER SQL statements.