From: Matthias Schmidt Date: Tue, 16 Mar 2021 13:22:38 +0000 (+0100) Subject: Mention new database PIP in PHP database API documentation X-Git-Tag: 5.6.final~280 X-Git-Url: https://git.stricted.de/?p=GitHub%2FWoltLab%2Fwoltlab.github.io.git;a=commitdiff_plain;h=1293c3dff7d889a80a489cd18f64bcdfdefd8efb Mention new database PIP in PHP database API documentation --- diff --git a/docs/package/database-php-api.md b/docs/package/database-php-api.md index 1b391c23..26a84eef 100644 --- a/docs/package/database-php-api.md +++ b/docs/package/database-php-api.md @@ -7,7 +7,7 @@ We have added a new PHP-based API to manipulate the database scheme which can be ```php $tables = [ - // TODO + // list of `DatabaseTable` objects ]; (new DatabaseTableChangeProcessor( @@ -20,6 +20,14 @@ $tables = [ All of the relevant components can be found in the `wcf\system\database\table` namespace. +With WoltLab Suite 5.4, you should use the new [database](pip/database.md) package installation plugin for which you only have to return the array of affected database tables: + +```php +return [ + // list of `DatabaseTable` objects +]; +``` + ## Database Tables