OCI createColumn fix

This commit is contained in:
Tóth Sándor
2014-06-23 14:59:56 +02:00
parent 13465be8f7
commit 3f27a4b74f

View File

@@ -27,7 +27,7 @@ class Schema extends \yii\db\Schema
{
parent::init();
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->extractColumnSize($c, $column['DATA_TYPE']);
if (!$column->isPrimaryKey) {
if (!$c->isPrimaryKey) {
if (stripos($column['DATA_DEFAULT'], 'timestamp') !== false) {
$c->defaultValue = null;
} else {