mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-24 02:27:22 +08:00
@@ -27,7 +27,7 @@ class Schema extends \yii\db\Schema
|
|||||||
{
|
{
|
||||||
parent::init();
|
parent::init();
|
||||||
if ($this->defaultSchema === null) {
|
if ($this->defaultSchema === null) {
|
||||||
$this->defaultSchema = $this->db->username;
|
$this->defaultSchema = strtoupper($this->db->username);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -170,7 +170,7 @@ EOD;
|
|||||||
$this->extractColumnType($c, $column['DATA_TYPE']);
|
$this->extractColumnType($c, $column['DATA_TYPE']);
|
||||||
$this->extractColumnSize($c, $column['DATA_TYPE']);
|
$this->extractColumnSize($c, $column['DATA_TYPE']);
|
||||||
|
|
||||||
if (!$column->isPrimaryKey) {
|
if (!$c->isPrimaryKey) {
|
||||||
if (stripos($column['DATA_DEFAULT'], 'timestamp') !== false) {
|
if (stripos($column['DATA_DEFAULT'], 'timestamp') !== false) {
|
||||||
$c->defaultValue = null;
|
$c->defaultValue = null;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user