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.
|
||||
*
|
||||
@ -475,7 +473,7 @@ class Schema
|
||||
} else {
|
||||
$sql .= ($cd->nullable) ? "null " : "not null ";
|
||||
}
|
||||
|
||||
|
||||
if (!empty($cd->auto_increment)) {
|
||||
$sql .= " auto_increment ";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user