Merge pull request #31825 from nextcloud/bugfix/noid/add-missing-docs

Add missing doc changes and limit string length 4000 to new columns
This commit is contained in:
blizzz 2022-04-07 16:06:43 +02:00 committed by GitHub
commit 7ff60b8249
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -559,9 +559,13 @@ class MigrationService {
* - Primary key names must be set or the table name 23 chars or shorter
*
* Data constraints:
* - Tables need a primary key (Not specific to Oracle, but required for performant clustering support)
* - Columns with "NotNull" can not have empty string as default value
* - Columns with "NotNull" can not have number 0 as default value
* - Columns with type "bool" (which is in fact integer of length 1) can not be "NotNull" as it can not store 0/false
* - Columns with type "string" can not be longer than 4.000 characters, use "text" instead
*
* @see https://github.com/nextcloud/documentation/blob/master/developer_manual/basics/storage/database.rst
*
* @param Schema $sourceSchema
* @param Schema $targetSchema