From 3f27a4b74f14e5e6a2d56f75e71bec2728f1269d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B3th=20S=C3=A1ndor?= Date: Mon, 23 Jun 2014 14:59:56 +0200 Subject: [PATCH] OCI createColumn fix --- framework/db/oci/Schema.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/db/oci/Schema.php b/framework/db/oci/Schema.php index fafe2b8698..23381376ba 100644 --- a/framework/db/oci/Schema.php +++ b/framework/db/oci/Schema.php @@ -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 {