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');
|
$type = common_config('db', 'type');
|
||||||
if (empty(self::$_single)) {
|
if (empty(self::$_single)) {
|
||||||
include "lib/schema.{$type}.php";
|
$schemaClass = ucfirst($type).'Schema';
|
||||||
$class = $type.='Schema';
|
self::$_single = new $schemaClass();
|
||||||
self::$_single = new $class();
|
|
||||||
}
|
}
|
||||||
return self::$_single;
|
return self::$_single;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a ColumnDef object for a single column.
|
* Gets a ColumnDef object for a single column.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user