Function: meetingFundingUpgradeDdl()
meetingFundingUpgradeDdl(
tablePrefix?):string
Defined in: packages/agentos/src/io/channels/meetings/stores/sql.ts:210
Idempotently upgrades existing meeting stores, including the prepared-creation prerequisite. It composes
meetingStoresUpgradeDdl, then adds the funding columns and the funding scan's partial index again, each guarded
by IF NOT EXISTS, so tables an earlier version made, or tables this version made, end with the fresh schema's columns
and that index. A host applies it in its migration, in one transaction, before it constructs the stores.
Parameters
tablePrefix?
string = DEFAULT_TABLE_PREFIX
The prefix the tables were made under.
Returns
string
Throws
Error, the one meetingStoreTables throws, when the prefix is not a lower-case letter followed by at most 37 lower-case letters, digits or underscores; no SQL is built.