Skip to content

Commit babf93c

Browse files
committed
Stop mentioning the script PIP in database-php-api.md
see #219
1 parent edbe38f commit babf93c

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

docs/package/database-php-api.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,15 @@
11
# Database PHP API
22

33
While the [sql](pip/sql.md) package installation plugin supports adding and removing tables, columns, and indices, it is not able to handle cases where the added table, column, or index already exist.
4-
We have added a new PHP-based API to manipulate the database scheme which can be used in combination with the [script](pip/script.md) package installation plugin that skips parts that already exist:
5-
6-
```php
7-
$tables = [
8-
// list of `DatabaseTable` objects
9-
];
10-
11-
(new DatabaseTableChangeProcessor(
12-
/** @var ScriptPackageInstallationPlugin $this */
13-
$this->installation->getPackage(),
14-
$tables,
15-
WCF::getDB()->getEditor())
16-
)->process();
17-
```
18-
19-
All of the relevant components can be found in the `wcf\system\database\table` namespace.
20-
21-
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:
4+
We have added a new PHP-based API to manipulate the database scheme which can be used in combination with the [database](pip/database.md) package installation plugin that skips parts that already exist:
225

236
```php
247
return [
258
// list of `DatabaseTable` objects
269
];
2710
```
2811

12+
All of the relevant components can be found in the `wcf\system\database\table` namespace.
2913

3014
## Database Tables
3115

0 commit comments

Comments
 (0)