WireDatabaseSchemaLog::getCreateTables()

Get the current MySQL definition of every table, by replaying the log

See WireDatabaseSchemaReplay. Tables whose history includes a statement that can't be applied with certainty are listed in 'failed' instead, as are tables the log does not cover.

Available since version 3.0.273.

Usage

$array = $wireDatabaseSchemaLog->getCreateTables();

Return value

array

['tables' => [ table => CREATE TABLE statement ], 'columns' => [ table => [ column names ] ], 'failed' => [ table => reason ] ]


WireDatabaseSchemaLog methods and properties

API reference based on ProcessWire core version 3.0.275