Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update developer_manual/basics/storage/database.rst
Co-authored-by: Joas Schilling <[email protected]>
Signed-off-by: Josh <[email protected]>
  • Loading branch information
joshtrichards and nickvergessen authored Feb 28, 2024
commit 11e7260e71fddca868d5c213f271629aa73ba8b1
2 changes: 1 addition & 1 deletion developer_manual/basics/storage/database.rst
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ It makes sense to apply some general tips from the beginning, so you don't have
<?php
$table->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

Expand Down