From f67ddb17f67cc03fd778663746ec92e073e1bde0 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Tue, 19 Nov 2013 17:25:05 -0500 Subject: [PATCH] Fixes #1242: Gii Model generation added dropped table fields in Postgresql --- framework/yii/db/pgsql/Schema.php | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/framework/yii/db/pgsql/Schema.php b/framework/yii/db/pgsql/Schema.php index 302843bafd..aa3cdc9bd3 100644 --- a/framework/yii/db/pgsql/Schema.php +++ b/framework/yii/db/pgsql/Schema.php @@ -242,18 +242,17 @@ SQL; $schemaName = $this->db->quoteValue($table->schemaName); $sql = << 0 + a.attnum > 0 and t.typename != '' and c.relname = {$tableName} and d.nspname = {$schemaName} ORDER BY