mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 13:58:55 +08:00
Fixed test break.
This commit is contained in:
@ -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
|
|||||||
{
|
{
|
||||||
// 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 '
|
||||||
|
|||||||
Reference in New Issue
Block a user