Skip to content

Commit

Permalink
Some upgrading advices and change PHPUnit call since 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Jan 20, 2015
1 parent c5adfa0 commit 789a0b6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 22 deletions.
2 changes: 1 addition & 1 deletion intro/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The unit tests can be launched by the command:

.. code-block:: console
./vendor/bin/phpunit -v --bootstrap=bootstrap.php tests/
./vendor/bin/phpunit -v --bootstrap=tests/bootstrap.php tests/
If your are writing a feature, don't forget to write a unit test for it. You can find some example in the folder ``tests``.

Expand Down
3 changes: 1 addition & 2 deletions intro/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ Here is a short summary of mandatory elements before installing Roadiz:
* PHP 5.4.3+
* ``php5-gd`` extension
* ``php5-intl`` extension
* ``php5-imap`` extension
* ``php5-curl`` extension
* PHP cache (APC/XCache) + Var cache (strongly recommended)
* MySQL/PostgreSQL or SQLite database (do not forget to install ``php5-xxxsql`` extension according to your database driver flavor)
Expand Down Expand Up @@ -132,7 +131,7 @@ and to build PHP class autolader.

.. code-block:: bash
composer install --no-dev;
composer install -n --no-dev;
Then copy `conf/config.default.json` file to `conf/config.json`.

Expand Down
29 changes: 10 additions & 19 deletions intro/upgrading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ Use *Composer* to update dependancies

.. code-block:: bash
composer update --no-dev;
composer update -n --no-dev;
In order to avoid losing sensible node-sources data. You should
regenerate your node-types entities files:

.. code-block:: bash
bin/roadiz core:node-types --regenerateAllEntities;
Then run database schema update, first review migration details
to see if no data will be removed:
Expand All @@ -40,22 +47,6 @@ Then, if migration summary is OK (no data loss), perform the changes:
.. note::
If you are using an OPcode cache like XCache or APC, you’ll need to purge cache manually
because it cannot done from a CLI interface as they are shared cache engines.

Upgrading Node-types source entities
------------------------------------

If some Doctrine errors occur about some missing fields in your *NodesSources*,
you must *regenerate all entities* source files:

.. code-block:: bash
because it cannot done from a CLI interface as they are shared cache engines. As a last
chance try, you can restart you ``php5-fpm`` service.

bin/roadiz core:node-types --regenerateAllEntities;
bin/roadiz orm:schema-tool:update --dump-sql;
Verify here that no data field will be removed and apply changes

.. code-block:: bash
bin/roadiz orm:schema-tool:update --force;
bin/roadiz cache --clear-all

0 comments on commit 789a0b6

Please sign in to comment.