From 8214eda6d8c58e8eed7f91226807a55da04dd97d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Thu, 20 Dec 2018 15:18:24 +0100 Subject: [PATCH] Fix db migration link and use warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- developer_manual/app/storage/migrations.rst | 8 ++++---- developer_manual/app/storage/schema.rst | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/developer_manual/app/storage/migrations.rst b/developer_manual/app/storage/migrations.rst index 542843a74..74910aeea 100644 --- a/developer_manual/app/storage/migrations.rst +++ b/developer_manual/app/storage/migrations.rst @@ -1,10 +1,9 @@ +.. _app_db_migrations: + ========== Migrations ========== -.. app_db_migrations: - - In the past, apps had a `appinfo/database.xml`-file which holds their database schema for installation and update and was a functional method for installing apps which had some trouble with upgrading apps (e.g. apps were not able to rename columns @@ -125,7 +124,8 @@ Migrate from database.xml To migrate your app from a `database.xml` file to migrations run: .. code-block:: bash - php ./occ migrations:generate-from-schema + + php ./occ migrations:generate-from-schema This will create a new file under `lib/Migration` that results in the same database table(s) as your database.xml file. diff --git a/developer_manual/app/storage/schema.rst b/developer_manual/app/storage/schema.rst index 15d0fd62a..73141eeb6 100644 --- a/developer_manual/app/storage/schema.rst +++ b/developer_manual/app/storage/schema.rst @@ -2,8 +2,8 @@ Database schema (deprecated) ============================ -.. note:: Using the database.xml schema file is deprecated. You should migrate -to using :ref:`Databse Migrations app_db_migrations`. +.. warning:: Using the database.xml schema file is deprecated. + You should migrate to using :ref:`Database Migrations `. .. sectionauthor:: Bernhard Posselt