diff --git a/developer_manual/app_publishing_maintenance/upgrade-guide.rst b/developer_manual/app_publishing_maintenance/upgrade-guide.rst index 4b68aaa89..33e6867d5 100644 --- a/developer_manual/app_publishing_maintenance/upgrade-guide.rst +++ b/developer_manual/app_publishing_maintenance/upgrade-guide.rst @@ -6,6 +6,14 @@ Once you've created and published the first version of your app, you will want t This document will cover the most important changes in Nextcloud, as well as some guides on how to upgrade existing apps. +Upgrading to Nextcloud 22 +------------------------- + +Removed support for database.xml +******************************** + +The support for an app's ``appinfo/database.xml`` has been removed. + Upgrading to Nextcloud 21 ------------------------- @@ -79,6 +87,11 @@ The original `PSR-0` standard was deprecated in 2014 and therefore the support f .. _`PSR-0`: https://www.php-fig.org/psr/psr-0/ .. _`PSR-4`: https://www.php-fig.org/psr/psr-4/ +Last version with database.xml support and migration +**************************************************** + +Nextcloud 21 is the last major release that supports an app's ``appinfo/database.xml`` to define the database schema. This is your last chance to automatically convert this deprecated file into the new migration classes using ``occ migrations:generate-from-schema``. + Replaced well-known handler API ******************************* diff --git a/developer_manual/basics/storage/index.rst b/developer_manual/basics/storage/index.rst index 587d55807..a69bfff61 100644 --- a/developer_manual/basics/storage/index.rst +++ b/developer_manual/basics/storage/index.rst @@ -6,7 +6,6 @@ Storage and database :maxdepth: 2 migrations - schema database configuration filesystem diff --git a/developer_manual/basics/storage/schema.rst b/developer_manual/basics/storage/schema.rst deleted file mode 100644 index 5a66fe4ac..000000000 --- a/developer_manual/basics/storage/schema.rst +++ /dev/null @@ -1,58 +0,0 @@ -.. _database-xml: - -============================ -Database schema (deprecated) -============================ - -.. warning:: Using the database.xml schema file is deprecated. - You should migrate to using :ref:`Database Migrations `. - -.. sectionauthor:: Bernhard Posselt - -Nextcloud uses a database abstraction layer on top of either PDO, depending on the availability of PDO on the server. - -The database schema is inside :file:`appinfo/database.xml` in MDB2's `XML scheme notation `_ where the placeholders \*dbprefix* (\*PREFIX* in your SQL) and \*dbname* can be used for the configured database table prefix and database name. - -An example database XML file would look like this: - -.. code-block:: xml - - - - *dbname* - true - false - utf8 - - *dbprefix*yourapp_items - - - id - integer - 0 - true - 1 - 4 - - - user - text - true - 64 - - - name - text - true - 100 - - - path - clob - true - - -
-
- -To update the tables used by the app, simply adjust the database.xml file and increase the app version number in :file:`appinfo/info.xml` to trigger an update.