From 8cb613ff7b12d6304cd2d416f9b47991dcec6d92 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 14 Dec 2020 10:26:13 +0100 Subject: [PATCH] Give devs a hint that it's their last chance ditch database.xml It looks like 22 will drop the database.xml support alltogether, so let's motivate devs for the mgiration if they haven't done already. Signed-off-by: Christoph Wurst --- .../app_publishing_maintenance/upgrade-guide.rst | 5 +++++ developer_manual/basics/storage/migrations.rst | 2 ++ developer_manual/basics/storage/schema.rst | 2 ++ 3 files changed, 9 insertions(+) diff --git a/developer_manual/app_publishing_maintenance/upgrade-guide.rst b/developer_manual/app_publishing_maintenance/upgrade-guide.rst index e28cd8bb5..ba90325e1 100644 --- a/developer_manual/app_publishing_maintenance/upgrade-guide.rst +++ b/developer_manual/app_publishing_maintenance/upgrade-guide.rst @@ -19,6 +19,11 @@ App code checker deprecation The app code checker (``occ app:check-code myapp``) is obsolete due to :ref:`static analysis`. For Nextcloud 21 it will act as NOOP, meaning that you can still call the command but it will never fail. This allows you to still use it on CI if you test against 21, 20 and older releases. But prepare the switch to static analysis if you haven't already. Please also note that the app code checker hadn't received many updates recently, hence the number of issues it can detect is low. +Last version with database.xml support and migration +**************************************************** + +Nextcloud 21 is the last major release that supports an app's ``appinfo/database.xml`` to :ref:`define the database schema`. This is your last change to :ref:`automatically convert this deprecated file into the new migration classes`. + Upgrading to Nextcloud 20 ------------------------- diff --git a/developer_manual/basics/storage/migrations.rst b/developer_manual/basics/storage/migrations.rst index fdfb0f80f..027d48640 100644 --- a/developer_manual/basics/storage/migrations.rst +++ b/developer_manual/basics/storage/migrations.rst @@ -118,6 +118,8 @@ With this the old column gets removed. return $schema; } +.. _migrate-database-xml: + Migrate from database.xml ------------------------- diff --git a/developer_manual/basics/storage/schema.rst b/developer_manual/basics/storage/schema.rst index 73141eeb6..5a66fe4ac 100644 --- a/developer_manual/basics/storage/schema.rst +++ b/developer_manual/basics/storage/schema.rst @@ -1,3 +1,5 @@ +.. _database-xml: + ============================ Database schema (deprecated) ============================