Skip to content

Commit 7ff60b8

Browse files
authored
Merge pull request #31825 from nextcloud/bugfix/noid/add-missing-docs
Add missing doc changes and limit string length 4000 to new columns
2 parents fb7f65a + 10b2319 commit 7ff60b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/private/DB/MigrationService.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,9 +559,13 @@ public function executeStep($version, $schemaOnly = false) {
559559
* - Primary key names must be set or the table name 23 chars or shorter
560560
*
561561
* Data constraints:
562+
* - Tables need a primary key (Not specific to Oracle, but required for performant clustering support)
562563
* - Columns with "NotNull" can not have empty string as default value
563564
* - Columns with "NotNull" can not have number 0 as default value
564565
* - Columns with type "bool" (which is in fact integer of length 1) can not be "NotNull" as it can not store 0/false
566+
* - Columns with type "string" can not be longer than 4.000 characters, use "text" instead
567+
*
568+
* @see https://github.com/nextcloud/documentation/blob/master/developer_manual/basics/storage/database.rst
565569
*
566570
* @param Schema $sourceSchema
567571
* @param Schema $targetSchema

0 commit comments

Comments
 (0)