Generate a series of Knex schema.createTable() calls for a polymorphic
schema and all its CTI variant tables.
Returns an array of (knex: Knex) => Knex.SchemaBuilder functions — one
for the base table and one for each CTI variant. STI variants add their
columns to the base table itself so no extra table is needed.
Generate a series of Knex
schema.createTable()calls for a polymorphic schema and all its CTI variant tables.Returns an array of
(knex: Knex) => Knex.SchemaBuilderfunctions — one for the base table and one for each CTI variant. STI variants add their columns to the base table itself so no extra table is needed.Execute them sequentially in a migration: