Pārlūkot izejas kodu

Refactors the migration documentation a bit

Adrien Panay 6 gadus atpakaļ
vecāks
revīzija
60df665265
1 mainītis faili ar 15 papildinājumiem un 11 dzēšanām
  1. 15 11
      doc/migration.md

+ 15 - 11
doc/migration.md Parādīt failu

@@ -2,15 +2,27 @@
2 2
 
3 3
 ## Introduction ##
4 4
 
5
-Migrations on `Tracim` lays on [`gearbox migrate`](http://turbogears.readthedocs.io/en/tg2.3.7/turbogears/migrations.html), which in turn lays on [`alembic`](http://alembic.zzzcomputing.com/en/latest/index.html) which is the migration tool dedicated to `SQLAlchemy`.
5
+This document is intended to developers.
6 6
 
7
-## Quick summup ##
7
+Migrations on `Tracim` lays on [`gearbox migrate`](http://turbogears.readthedocs.io/en/tg2.3.7/turbogears/migrations.html), which in turn lays on [`alembic`](http://alembic.zzzcomputing.com/en/latest/index.html) which is the migration tool dedicated to `SQLAlchemy`.
8 8
 
9
-In order to use the `gearbox migrate [...]` commands, change your current directory to be `tracim/` from the root of the project :
9
+In order to use the `gearbox migrate [...]` commands, change your current directory to be `tracim/` from the root of the project, also usually named `tracim/` :
10 10
 
11 11
     (tg2env) user@host:~/tracim$ cd tracim/
12 12
     (tg2env) user@host:~/tracim/tracim$
13 13
 
14
+## Migration howto - Overview ##
15
+
16
+### Upgrading schema ###
17
+
18
+    gearbox migrate upgrade
19
+
20
+### Downgrading schema ###
21
+
22
+    gearbox migrate downgrade
23
+
24
+## Migration howto - Advanced (for developers) ##
25
+
14 26
 ### Retrieving schema current version ###
15 27
 
16 28
     gearbox migrate db_version
@@ -20,11 +32,3 @@ In order to use the `gearbox migrate [...]` commands, change your current direct
20 32
 This creates a new python migration file in `tracim/migration/versions/` ending by `migration_label.py`:
21 33
 
22 34
     gearbox migrate create 'migration label'
23
-
24
-### Upgrading schema ###
25
-
26
-    gearbox migrate upgrade
27
-
28
-### Downgrading schema ###
29
-
30
-    gearbox migrate downgrade