aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-04-07 16:06:43 +0200
committerGitHub <noreply@github.com>2022-04-07 16:06:43 +0200
commit7ff60b824900412a017bf2c775cc0f8f7cb7edc7 (patch)
tree55e370990c796c2c2e9a7ab9682bac81d4011acb
parentfb7f65a687ba426188148b3ebbf295ee307c7bc4 (diff)
parent10b2319aa01d5a5689a791932162184b3133ac5e (diff)
downloadnextcloud-server-7ff60b824900412a017bf2c775cc0f8f7cb7edc7.tar.gz
nextcloud-server-7ff60b824900412a017bf2c775cc0f8f7cb7edc7.zip
Merge pull request #31825 from nextcloud/bugfix/noid/add-missing-docs
Add missing doc changes and limit string length 4000 to new columns
-rw-r--r--lib/private/DB/MigrationService.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/DB/MigrationService.php b/lib/private/DB/MigrationService.php
index fb7b6b7472f..92f45dfdbe8 100644
--- a/lib/private/DB/MigrationService.php
+++ b/lib/private/DB/MigrationService.php
@@ -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