Commit 9eedfd05 by Qiang Xue

Fixed test break.

parent ab1f32ef
...@@ -32,7 +32,7 @@ Yii Framework 2 Change Log ...@@ -32,7 +32,7 @@ Yii Framework 2 Change Log
- Enh #4181: Added `yii\bootstrap\Modal::$headerOptions` and `yii\bootstrap\Modal::$footerOptions` (tuxoff, samdark) - Enh #4181: Added `yii\bootstrap\Modal::$headerOptions` and `yii\bootstrap\Modal::$footerOptions` (tuxoff, samdark)
- Enh #4263: Added migration and SQL schema files for `yii\log\DbTarget` (samdark) - Enh #4263: Added migration and SQL schema files for `yii\log\DbTarget` (samdark)
- Enh #4457: Added support for using noscript for css files registered through asset bundles and Html helper (samdark) - Enh #4457: Added support for using noscript for css files registered through asset bundles and Html helper (samdark)
- Enh #4492: Support PostgreSQL-specific syntax for `QueryBuilder::alterColumn()` (qiangxue) - Enh #4492: Support PostgreSQL-specific syntax for `QueryBuilder::alterColumn()` (qiangxue)
- Enh #4739: Better display of exceptions when the response format is set as "raw" format (qiangxue) - Enh #4739: Better display of exceptions when the response format is set as "raw" format (qiangxue)
- Enh #5223: Query builder now supports selecting sub-queries as columns (qiangxue) - Enh #5223: Query builder now supports selecting sub-queries as columns (qiangxue)
- Enh #5367: Added `yii\grid\DataColumn::encodeLabel` (SDKiller) - Enh #5367: Added `yii\grid\DataColumn::encodeLabel` (SDKiller)
......
...@@ -157,7 +157,7 @@ class QueryBuilder extends \yii\db\QueryBuilder ...@@ -157,7 +157,7 @@ class QueryBuilder extends \yii\db\QueryBuilder
{ {
// https://github.com/yiisoft/yii2/issues/4492 // https://github.com/yiisoft/yii2/issues/4492
// http://www.postgresql.org/docs/9.1/static/sql-altertable.html // http://www.postgresql.org/docs/9.1/static/sql-altertable.html
if (!preg_match('/^(DROP\s+DEFAULT|SET|RESET)\s+/i', $type)) { if (!preg_match('/^(DROP|SET|RESET)\s+/i', $type)) {
$type = 'TYPE ' . $this->getColumnType($type); $type = 'TYPE ' . $this->getColumnType($type);
} }
return 'ALTER TABLE ' . $this->db->quoteTableName($table) . ' ALTER COLUMN ' return 'ALTER TABLE ' . $this->db->quoteTableName($table) . ' ALTER COLUMN '
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment