Add support for optional db.namePrefix setting
authorDavid Mudrák <david@moodle.com>
Fri, 27 Jun 2014 12:38:11 +0000 (14:38 +0200)
committerDavid Mudrák <david@moodle.com>
Fri, 4 Jul 2014 12:08:32 +0000 (14:08 +0200)
commita8c8b959723c8d28f8a58cbf4831a2b6740100f5
tree041cd5a1a2b00e6e1cb273d48313e8685455612b
parentedbd5fa0de25fc2a8ece43e6c80c2e0c0be7a506
Add support for optional db.namePrefix setting

Currently, the default database name is the same as the Moodle instance's name.
This is suboptimal for development setups where the database engine is used for
other projects as well (Moodle developer can easily have Mahara or Mediawiki
databases present as well, for example).

I believe it's a good idea to make it clear that certain database is under
mdk's control. Having a prefix (such as `mdk_`) seems to work well.
config-dist.json
lib/commands/create.py
lib/moodle.py