Browse Source

Making accesors public

tags/2.0.0-beta
Luciano Baraglia 11 years ago
parent
commit
89f0bfe100
  1. 2
      framework/yii/db/Schema.php
  2. 2
      framework/yii/db/mysql/Schema.php
  3. 2
      framework/yii/db/pgsql/Schema.php
  4. 2
      framework/yii/db/sqlite/Schema.php

2
framework/yii/db/Schema.php

@ -264,7 +264,7 @@ abstract class Schema extends Object
* @return array all unique indexes for the given table.
* @throws NotSupportedException if this method is called
*/
protected function findUniqueIndexes($schema = '')
public function findUniqueIndexes($schema = '')
{
throw new NotSupportedException(get_class($this) . ' does not support getting unique indexes information.');
}

2
framework/yii/db/mysql/Schema.php

@ -259,7 +259,7 @@ class Schema extends \yii\db\Schema
* @param TableSchema $table the table metadata
* @return array all unique indexes for the given table.
*/
protected function findUniqueIndexes($table)
public function findUniqueIndexes($table)
{
$sql = $this->getCreateTableSql($table);
$uniqueIndexes = [];

2
framework/yii/db/pgsql/Schema.php

@ -273,7 +273,7 @@ SQL;
* @param TableSchema $table the table metadata
* @return array all unique indexes for the given table.
*/
protected function findUniqueIndexes($table)
public function findUniqueIndexes($table)
{
$indexes = $this->getUniqueIndexInformation($table);
$uniqueIndexes = [];

2
framework/yii/db/sqlite/Schema.php

@ -172,7 +172,7 @@ class Schema extends \yii\db\Schema
* @param TableSchema $table the table metadata
* @return array all unique indexes for the given table.
*/
protected function findUniqueIndexes($table)
public function findUniqueIndexes($table)
{
$sql = "PRAGMA index_list(" . $this->quoteSimpleTableName($table->name) . ')';
$indexes = $this->db->createCommand($sql)->queryAll();

Loading…
Cancel
Save