Project

General

Profile

Feature #6061

Updated by Julio Montoya over 6 years ago

Example for version 1.10 a new folder will be created:

main/install/1.10.0
db_course.sql
db_main.sql
db_stats.sql
db_user.sql

instead of having everything in the main/install folder.

This means also that a new file db_course.sql with the c_* tables will be added (Right now we create the course tables via a php function)

This way we could easily compare/test/install databases from different versions. For example:

Clean the chamilo folder:
<pre>
app/console.php chamilo:setup
</pre>

Install a fresh Chamilo 1.8.8

<pre>
app/console.php chamilo:install 1.8.8
</pre>

Migrate to 1.9.0

<pre>
app/console.php chamilo:upgrade 1.9.0
</pre>

Migrate to 1.10.0

<pre>
app/console.php chamilo:upgrade 1.9.0
</pre>

For Chamilo 1.11 we could use Doctrine migrations in order to use up/down changes. Another task could be created.

See also https://task.beeznest.com/issues/5572

Back