WireDatabaseSchemaLog::record()

Record a schema change that has just been successfully executed

Never throws: a failure to record is reported to the error log, since it must not affect the schema change itself.

Usage

$bool = $wireDatabaseSchemaLog->record(string $sql);

Arguments

NameType(s)Description
$sqlstring

Schema change in MySQL syntax

Return value

bool

True if recorded (or accounted for by the baseline)


WireDatabaseSchemaLog methods and properties

API reference based on ProcessWire core version 3.0.275