move schema.type.php to typeschema.php like other files
This commit is contained in:
parent
ebf4e497f6
commit
81087e45c5
@ -77,14 +77,12 @@ class Schema
|
||||
{
|
||||
$type = common_config('db', 'type');
|
||||
if (empty(self::$_single)) {
|
||||
include "lib/schema.{$type}.php";
|
||||
$class = $type.='Schema';
|
||||
self::$_single = new $class();
|
||||
$schemaClass = ucfirst($type).'Schema';
|
||||
self::$_single = new $schemaClass();
|
||||
}
|
||||
return self::$_single;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets a ColumnDef object for a single column.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user