equal
deleted
inserted
replaced
3 .. _migration: |
3 .. _migration: |
4 |
4 |
5 Migration |
5 Migration |
6 ========= |
6 ========= |
7 |
7 |
8 One of the main concept in `CubicWeb` is to create incremental applications. |
8 One of the main concept in *CubicWeb* is to create incremental applications. |
9 For this purpose, multiple actions are provided to facilitate the improvement |
9 For this purpose, multiple actions are provided to facilitate the improvement |
10 of an application, and in particular to handle the changes to be applied |
10 of an application, and in particular to handle the changes to be applied |
11 to the data model, without loosing existing data. |
11 to the data model, without loosing existing data. |
12 |
12 |
13 The current version of an application model is provided in the file |
13 The current version of an application model is provided in the file |
43 * `Any`, applies only to the RQL server and updates data in the database |
43 * `Any`, applies only to the RQL server and updates data in the database |
44 (schema and data migration for example). |
44 (schema and data migration for example). |
45 |
45 |
46 Again in the directory `migration`, the file `depends.map` allows to indicate |
46 Again in the directory `migration`, the file `depends.map` allows to indicate |
47 that for the migration to a particular model version, you always have to first |
47 that for the migration to a particular model version, you always have to first |
48 migrate to a particular `CubicWeb` version. This file can contain comments (lines |
48 migrate to a particular *CubicWeb* version. This file can contain comments (lines |
49 starting by `#`) and a dependancy is listed as follows: :: |
49 starting by `#`) and a dependancy is listed as follows: :: |
50 |
50 |
51 <model version n° X.Y.Z> : <cubicweb version n° X.Y.Z> |
51 <model version n° X.Y.Z> : <cubicweb version n° X.Y.Z> |
52 |
52 |
53 For example: :: |
53 For example: :: |