Skip to content

Commit 2500fb9

Browse files
committed
Document IDefaultValueDatabaseTableColumn
see WoltLab/WCF#4733
1 parent 54a158e commit 2500fb9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/migration/wsc54/deprecations_removals.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ With version 5.5, we have deprecated certain components and removed several othe
1616
- `wcf\form\SearchForm` (see [WoltLab/WCF#4605](https://github.com/WoltLab/WCF/pull/4605))
1717
- `wcf\page\AbstractSecurePage` ([WoltLab/WCF#4515](https://github.com/WoltLab/WCF/pull/4515))
1818
- `wcf\page\SearchResultPage` (see [WoltLab/WCF#4605](https://github.com/WoltLab/WCF/pull/4605))
19+
- `wcf\system\database\table\column\TUnsupportedDefaultValue` (do not implement `IDefaultValueDatabaseTableColumn`, see [WoltLab/WCF#4733](https://github.com/WoltLab/WCF/pull/4733))
1920
- `wcf\system\exception\ILoggingAwareException` ([WoltLab/WCF#4547](https://github.com/WoltLab/WCF/pull/4547))
2021
- `wcf\system\io\FTP` (directly use the FTP extension)
2122
- `wcf\system\search\AbstractSearchableObjectType` (use `AbstractSearchProvider` instead, see [WoltLab/WCF#4605](https://github.com/WoltLab/WCF/pull/4605))

docs/migration/wsc54/php.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,13 @@ Constructing an object of these factory classes is considered a bug, as the clas
312312

313313
See [WoltLab/WCF#4564](https://github.com/WoltLab/WCF/pull/4564) for details.
314314

315+
WoltLab Suite 5.5 adds the `IDefaultValueDatabaseTableColumn` interface which is used to check whether specifying a default value is legal.
316+
For backwards compatibility this interface is implemented by `AbstractDatabaseTableColumn`.
317+
You should explicitly add this interface to custom table column type classes to avoid breakage if the interface is removed from `AbstractDatabaseTableColumn` in a future version.
318+
Likewise you should explicitly check for the interface before attempting to access the methods related to the default value of a column.
319+
320+
See [WoltLab/WCF#4733](https://github.com/WoltLab/WCF/pull/4733) for details.
321+
315322
### File Deletion
316323

317324
Three new package installation plugins have been added to delete ACP templates with [acpTemplateDelete](../../package/pip/acp-template-delete.md), files with [fileDelete](../../package/pip/file-delete.md), and templates with [templateDelete](../../package/pip/template-delete.md).

0 commit comments

Comments
 (0)