vzlogger/share/sql
2010-12-09 10:16:42 +01:00
..
demo changes to demo data: removed unused entries, changed smallint -> integer 2010-12-09 10:16:42 +01:00
README added hint to alternative sql schema generation techniques 2010-12-03 16:33:59 +01:00

volkszaehler.org uses doctrine [1] as database abstraction and object relation model.

To setup your database follow these steps:

1. Make sure you have a proper configuration file (backend/volkszaehler.conf.php)
2. Adjust the configuration to your database setup
3. Call backend/bin/doctrine orm:schema-tool:create --dump-sql > share/sql/mysql.sql
4. import the resulting file using your favorite sql tool

Alternatively you can directly import a existing mysql.sql file or
force the script to do it for you by leaving the "--dump-sql" option.

[1] http://www.doctrine-project.org