From c36a9c308818ea77e7d89846e1305c8392576244 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 21 Apr 2016 12:49:59 -0500 Subject: [PATCH] Add info to README about upgrading Chamilo to Git-based from a package-based installation --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index b7a8252f49..d746b95697 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,17 @@ Typically: DELETE FROM access_url_rel_course WHERE access_url_id NOT IN (SELECT id FROM access_url); +### Upgrading from non-Git Chamilo 1.10 ### + +In the *very unlikely* case of upgrading a "normal" Chamilo 1.10 installation (done with the downloadable zip package) to a Git-based installation, make sure you delete the contents of a few folders first. These folders are re-generated later by the ```composer update``` command. This is likely to increase the downtime of your Chamilo portal of a few additional minutes (plan for 10 minutes on a reasonnable internet connection). + +``` +rm composer.lock +rm -rf web/* +rm -rf vendor/* +``` + + # For developers and testers only This section is for developers only (or for people who have a good reason to use @@ -155,6 +166,11 @@ version and type the following (assuming you want to execute Version201505271207 php bin/doctrine.php migrations:execute 20150527120703 --up --configuration=app/config/migrations.yml ``` +You can also print the differences between your database and what it should be by issuing the following command from the Chamilo base folder: +``` +php bin/doctrine.php orm:schema:update --dump-sql +``` + ## Contributing If you want to submit new features or patches to Chamilo, please follow the