forked from GNUsocial/gnu-social
move the schema DDL sql off into seperate files for each db we support
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user