From 10b2319aa01d5a5689a791932162184b3133ac5e Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 4 Apr 2022 15:56:54 +0200 Subject: [PATCH] Add missing doc changes Signed-off-by: Joas Schilling --- lib/private/DB/MigrationService.php | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5