You are here: Gregarius - Devlog » 2005 » 02 » 10

Archive for February 10th, 2005

Database backed configuration

I’ve committed some preliminary code to cvs that basically replaces the current define() based configuration with a snappy database backed configuration

The table schema goes like this

CREATE TABLE `config` (
  `key_` varchar(127) NOT NULL default '',
  `value_` text NOT NULL,
  `default_` text NOT NULL,
  `type_` enum('string','num','boolean','array','enum') NOT NULL default 'string',
  `desc_` text,
  `export_` varchar(127) default NULL,
   PRIMARY KEY  (`key_`)
) TYPE=MyISAM;

The array type is pretty nice as it allows to store complex structures like multi-dimensional arrays which are un-serialized when they leave the database, and will, hopefully, be serialized back to the db one day

Speaking of which, stay tuned for the next obvious step: gui-based configuration editing

Oh, I also upgraded to the latest MagpieRSS (0.71.1) and kses (0.2.2)

Posted by Marco at Feb 10th 2005, 10:41 pm | Filed under: features, gregarius | 3 Comments
Sponsored links

Mobile Phones | Secured Loans | Credit Cards | Debt Consolidation | Per Insurance