mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 06:11:35 +08:00
db/ColumnSchemaBuilder::buildCommentString() returns empty string by default
This commit is contained in:
@ -372,7 +372,7 @@ class ColumnSchemaBuilder extends Object
|
|||||||
*/
|
*/
|
||||||
protected function buildCommentString()
|
protected function buildCommentString()
|
||||||
{
|
{
|
||||||
return $this->comment !== null ? " COMMENT " . $this->db->quoteValue($this->comment) : '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -43,6 +43,14 @@ class ColumnSchemaBuilder extends AbstractColumnSchemaBuilder
|
|||||||
return $this->isFirst ? ' FIRST' : '';
|
return $this->isFirst ? ' FIRST' : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
protected function buildCommentString()
|
||||||
|
{
|
||||||
|
return $this->comment !== null ? " COMMENT " . $this->db->quoteValue($this->comment) : '';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritdoc
|
* @inheritdoc
|
||||||
*/
|
*/
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* @link http://www.yiiframework.com/
|
|
||||||
* @copyright Copyright (c) 2008 Yii Software LLC
|
|
||||||
* @license http://www.yiiframework.com/license/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace yii\db\mssql;
|
|
||||||
|
|
||||||
use yii\db\ColumnSchemaBuilder as AbstractColumnSchemaBuilder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ColumnSchemaBuilder is the schema builder for Oracle databases.
|
|
||||||
*
|
|
||||||
* @author Vasenin Matvey <vaseninm@gmail.com>
|
|
||||||
* @since 2.0.6
|
|
||||||
*/
|
|
||||||
class ColumnSchemaBuilder extends AbstractColumnSchemaBuilder
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @inheritdoc
|
|
||||||
*/
|
|
||||||
protected function buildCommentString()
|
|
||||||
{
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
}
|
|
@ -124,15 +124,6 @@ class Schema extends \yii\db\Schema
|
|||||||
return new QueryBuilder($this->db);
|
return new QueryBuilder($this->db);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @inheritdoc
|
|
||||||
* @return ColumnSchemaBuilder column schema builder instance
|
|
||||||
*/
|
|
||||||
public function createColumnSchemaBuilder($type, $length = null)
|
|
||||||
{
|
|
||||||
return new ColumnSchemaBuilder($type, $length);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads the metadata for the specified table.
|
* Loads the metadata for the specified table.
|
||||||
* @param string $name table name
|
* @param string $name table name
|
||||||
|
@ -43,6 +43,14 @@ class ColumnSchemaBuilder extends AbstractColumnSchemaBuilder
|
|||||||
return $this->isFirst ? ' FIRST' : '';
|
return $this->isFirst ? ' FIRST' : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
protected function buildCommentString()
|
||||||
|
{
|
||||||
|
return $this->comment !== null ? " COMMENT " . $this->db->quoteValue($this->comment) : '';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritdoc
|
* @inheritdoc
|
||||||
*/
|
*/
|
||||||
|
@ -13,7 +13,8 @@ use yii\db\ColumnSchemaBuilder as AbstractColumnSchemaBuilder;
|
|||||||
* ColumnSchemaBuilder is the schema builder for Oracle databases.
|
* ColumnSchemaBuilder is the schema builder for Oracle databases.
|
||||||
*
|
*
|
||||||
* @author Vasenin Matvey <vaseninm@gmail.com>
|
* @author Vasenin Matvey <vaseninm@gmail.com>
|
||||||
* @since 2.0.6
|
* @author Chris Harris <chris@buckshotsoftware.com>
|
||||||
|
* @since 2.0.8
|
||||||
*/
|
*/
|
||||||
class ColumnSchemaBuilder extends AbstractColumnSchemaBuilder
|
class ColumnSchemaBuilder extends AbstractColumnSchemaBuilder
|
||||||
{
|
{
|
||||||
@ -60,12 +61,4 @@ class ColumnSchemaBuilder extends AbstractColumnSchemaBuilder
|
|||||||
}
|
}
|
||||||
return $this->buildCompleteString($format);
|
return $this->buildCompleteString($format);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @inheritdoc
|
|
||||||
*/
|
|
||||||
protected function buildCommentString()
|
|
||||||
{
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* @link http://www.yiiframework.com/
|
|
||||||
* @copyright Copyright (c) 2008 Yii Software LLC
|
|
||||||
* @license http://www.yiiframework.com/license/
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace yii\db\pgsql;
|
|
||||||
|
|
||||||
use yii\db\ColumnSchemaBuilder as AbstractColumnSchemaBuilder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ColumnSchemaBuilder is the schema builder for Postgres databases.
|
|
||||||
*
|
|
||||||
* @author Vasenin Matvey <vaseninm@gmail.com>
|
|
||||||
* @since 2.0.6
|
|
||||||
*/
|
|
||||||
class ColumnSchemaBuilder extends AbstractColumnSchemaBuilder
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @inheritdoc
|
|
||||||
*/
|
|
||||||
protected function buildCommentString()
|
|
||||||
{
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
}
|
|
@ -118,15 +118,6 @@ class Schema extends \yii\db\Schema
|
|||||||
return new QueryBuilder($this->db);
|
return new QueryBuilder($this->db);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @inheritdoc
|
|
||||||
* @return ColumnSchemaBuilder column schema builder instance
|
|
||||||
*/
|
|
||||||
public function createColumnSchemaBuilder($type, $length = null)
|
|
||||||
{
|
|
||||||
return new ColumnSchemaBuilder($type, $length);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resolves the table name and schema name (if any).
|
* Resolves the table name and schema name (if any).
|
||||||
* @param TableSchema $table the table metadata object
|
* @param TableSchema $table the table metadata object
|
||||||
|
@ -44,12 +44,4 @@ class ColumnSchemaBuilder extends AbstractColumnSchemaBuilder
|
|||||||
|
|
||||||
return $this->buildCompleteString($format);
|
return $this->buildCompleteString($format);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @inheritdoc
|
|
||||||
*/
|
|
||||||
protected function buildCommentString()
|
|
||||||
{
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user