aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/devel/migrations.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/source/devel/migrations.rst')
-rw-r--r--docs/source/devel/migrations.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/source/devel/migrations.rst b/docs/source/devel/migrations.rst
index bd9ac0da..16c02b04 100644
--- a/docs/source/devel/migrations.rst
+++ b/docs/source/devel/migrations.rst
@@ -20,6 +20,12 @@ structure works, we need to add a migration so that people running
older codebases can have their databases updated to the new structure
when they run `./bin/gmg dbupdate`.
+The first time `./bin/gmg dbupdate` is run by a user, it creates the
+tables at the current state that they're defined in models.py and sets
+the migration number to the current migration... after all, migrations
+only exist to get things to the current state of the db. After that,
+every migration is run with dbupdate.
+
There's a few things you need to know:
- We use `sqlalchemy-migrate