Skip to content

Commit 514a47f

Browse files
authored
Merge pull request #13946 from nextcloud/carl/doc-update-snowflake
feat(upgrade-guide-33): Add change related to snowflake ids
2 parents 94a5a1e + 04098a5 commit 514a47f

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
@@ -85,6 +85,17 @@ Default user agent for outgoing requests changed
8585

8686
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.
8787

88+
Snowflake IDS
89+
^^^^^^^^^^^^^
90+
91+
The following tables are now using snowflake ids:
92+
93+
- ``oc_previews``
94+
- ``oc_jobs``
95+
- ``oc_share_external``
96+
97+
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`.
98+
8899
Added Events
89100
^^^^^^^^^^^^
90101

@@ -108,7 +119,8 @@ Added APIs
108119
Changed APIs
109120
^^^^^^^^^^^^
110121

111-
- 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.
122+
- 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.
123+
- 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.
112124

113125
Deprecated APIs
114126
^^^^^^^^^^^^^^^
@@ -159,3 +171,5 @@ Should be replaced by the following code:
159171
160172
// Do stuff
161173
}
174+
175+
- 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)