Commit 89f0bfe1 by Luciano Baraglia

Making accesors public

parent d376da57
......@@ -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.');
}
......
......@@ -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 = [];
......
......@@ -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 = [];
......
......@@ -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();
......
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