move the schema DDL sql off into seperate files for each db we support

This commit is contained in:
Brenda Wallace
2010-01-30 18:45:10 +13:00
parent b68a21d4f7
commit e765a9657b
3 changed files with 1045 additions and 1 deletions

View File

@@ -75,8 +75,11 @@ class Schema
static function get()
{
$type = common_config('db', 'type');
if (empty(self::$_single)) {
self::$_single = new Schema();
include "lib/schema.{$type}.php";
$class = $type.='Schema';
self::$_single = new $class();
}
return self::$_single;
}