summaryrefslogtreecommitdiff
path: root/lib/schema.php
diff options
context:
space:
mode:
authorBrenda Wallace <shiny@cpan.org>2010-01-30 18:45:10 +1300
committerBrenda Wallace <shiny@cpan.org>2010-01-30 18:45:10 +1300
commite765a9657b0491c6d4fd6436c9cd489342a465c9 (patch)
treef9377c54a7d555e9ad56a8bf097f8fea9c221dc3 /lib/schema.php
parentb68a21d4f77f7d05f12bf85068c2d0d1a0ba3a36 (diff)
move the schema DDL sql off into seperate files for each db we support
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;
}