From 04de7b59b9b6358e6a14c5c44c1f5697670f6988 Mon Sep 17 00:00:00 2001 From: Josh Date: Sat, 17 Feb 2024 09:25:51 -0500 Subject: [PATCH 1/2] docs(dev): Mention new uniqueness check for index names Follow-on to nextcloud/server#39506 & nextcloud/server#43357 Signed-off-by: Josh --- developer_manual/basics/storage/database.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/developer_manual/basics/storage/database.rst b/developer_manual/basics/storage/database.rst index dd71e9a1a..9abc0b737 100644 --- a/developer_manual/basics/storage/database.rst +++ b/developer_manual/basics/storage/database.rst @@ -360,7 +360,7 @@ It makes sense to apply some general tips from the beginning, so you don't have setPrimaryKey(['id']); -4. Manually set the name of your indexes. It will help you to manipulate them if needed in the future. Note that the names of the index are "global" database wide in some database platforms. So having generic names can create conflicts. +4. Manually set the name of your indexes. It will help you to manipulate them if needed in the future. Note that the names of the index are "global" database wide in some database platforms so having generic names can create conflicts. We check (as of v28) for uniqueness across all tables at installation time and during updates. This happens *regardless of the in-use database platform* to maintain broad compatibility (and consistency). .. code-block:: php From 11e7260e71fddca868d5c213f271629aa73ba8b1 Mon Sep 17 00:00:00 2001 From: Josh Date: Wed, 28 Feb 2024 17:18:46 -0500 Subject: [PATCH 2/2] Update developer_manual/basics/storage/database.rst Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Josh --- developer_manual/basics/storage/database.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/developer_manual/basics/storage/database.rst b/developer_manual/basics/storage/database.rst index 9abc0b737..b70640026 100644 --- a/developer_manual/basics/storage/database.rst +++ b/developer_manual/basics/storage/database.rst @@ -360,7 +360,7 @@ It makes sense to apply some general tips from the beginning, so you don't have setPrimaryKey(['id']); -4. Manually set the name of your indexes. It will help you to manipulate them if needed in the future. Note that the names of the index are "global" database wide in some database platforms so having generic names can create conflicts. We check (as of v28) for uniqueness across all tables at installation time and during updates. This happens *regardless of the in-use database platform* to maintain broad compatibility (and consistency). +4. Manually set the name of your indexes. It will help you to manipulate them if needed in the future. Note that the names of the index are "global" database wide in some database platforms so having generic names can create conflicts. Since Nextcloud 28 uniqueness across all tables is ensured at installation time and during updates. This happens *regardless of the in-use database platform* to maintain broad compatibility and consistency. .. code-block:: php