midgard_setup is getting better

Posted on 2007-08-10 17:08:03 EEST.

Have to mention about this before weekend :)

midgard_setup, a datagard replacement is now able to create fully functional ( I hope so :) Midgard database. Example code is simple:

$s = new midgard_setup_cli();
$s->save_config();
$sd = new midgard_setup_database($s->midgard_config);
$sd->create_database();
$sd->update_database();

A nice feature of __update_database__ method is fact that it also tries to create tables in case if one doesn't exist for specific class. It also can be used in Apache environment without security risk, as it can create tables only for classes registered via MgdSchema.

Also, I remined myself that Midgard unified configuration file can be managed with midgard-python bindings.

Next step is to install pear packages.

Back

Layout Copyright © 2006 Finnish Teleservice Center Ltd Oy - Site Powered by Midgard CMS