summaryrefslogtreecommitdiff
path: root/lib/schema.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/schema.php')
-rw-r--r--lib/schema.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/schema.php b/lib/schema.php
index a7f64ebed..164387ff3 100644
--- a/lib/schema.php
+++ b/lib/schema.php
@@ -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;
}