Skip to content

Commit 04098a5

Browse files
committed
feat(upgrade-guide-33): Add change related to snowflake ids
Signed-off-by: Carl Schwan <carlschwan@kde.org>
1 parent 0af0781 commit 04098a5

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_33.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,17 @@ Default user agent for outgoing requests changed
8080

8181
Starting with this release, the default user agent for requests done by the instance was changed from ``Nextcloud Server Crawler`` to ``Nextcloud-Server-Crawler/X.Y.Z``, where ``X.Y.Z`` is the current server version.
8282

83+
Snowflake IDS
84+
^^^^^^^^^^^^^
85+
86+
The following tables are now using snowflake ids:
87+
88+
- ``oc_previews``
89+
- ``oc_jobs``
90+
- ``oc_share_external``
91+
92+
The API related to these tables are now using a string instead of a int. See Changed APIs section and :doc:`/digging_deeper/snowflake_ids`.
93+
8394
Added Events
8495
^^^^^^^^^^^^
8596

@@ -103,7 +114,8 @@ Added APIs
103114
Changed APIs
104115
^^^^^^^^^^^^
105116

106-
- The ``setId`` and ``getId`` of ``\OCP\BackgroundJob\IJob`` were changed to return/accept a string instead of an int. Same for ``\OCP\BackgroundJob\IJobList`` were some methods (``removedById``, ``getById`` and ``getDetailsById``) are now taking a string instead of an int.
117+
- The ``setId`` and ``getId`` methods of ``\OCP\BackgroundJob\IJob`` were changed to return/accept a string instead of an int. Same for ``\OCP\BackgroundJob\IJobList`` were some methods (``removedById``, ``getById`` and ``getDetailsById``) are now taking a string instead of an int. The string is suppose to be a snowflake id.
118+
- The ``setObjectId`` and ``getObjectId`` methods of ``\OCP\Activity\IEvent`` were changed to return/accept a string in addition to an int. The string is suppose to be a snowflake id.
107119

108120
Deprecated APIs
109121
^^^^^^^^^^^^^^^
@@ -154,3 +166,5 @@ Should be replaced by the following code:
154166
155167
// Do stuff
156168
}
169+
170+
- The ``\OCP\Files::buildNotExistingFileName`` and related private helper ``\OC_Helper::buildNotExistingFileName`` were deprecated since Nextcloud 14 and were now removed. Use ``\OCP\Files\Folder::getNonExistingName`` instead.

0 commit comments

Comments
 (0)