Commit 89f0bfe1 by Luciano Baraglia

Making accesors public

parent d376da57
...@@ -264,7 +264,7 @@ abstract class Schema extends Object ...@@ -264,7 +264,7 @@ abstract class Schema extends Object
* @return array all unique indexes for the given table. * @return array all unique indexes for the given table.
* @throws NotSupportedException if this method is called * @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.'); throw new NotSupportedException(get_class($this) . ' does not support getting unique indexes information.');
} }
......
...@@ -259,7 +259,7 @@ class Schema extends \yii\db\Schema ...@@ -259,7 +259,7 @@ class Schema extends \yii\db\Schema
* @param TableSchema $table the table metadata * @param TableSchema $table the table metadata
* @return array all unique indexes for the given table. * @return array all unique indexes for the given table.
*/ */
protected function findUniqueIndexes($table) public function findUniqueIndexes($table)
{ {
$sql = $this->getCreateTableSql($table); $sql = $this->getCreateTableSql($table);
$uniqueIndexes = []; $uniqueIndexes = [];
......
...@@ -273,7 +273,7 @@ SQL; ...@@ -273,7 +273,7 @@ SQL;
* @param TableSchema $table the table metadata * @param TableSchema $table the table metadata
* @return array all unique indexes for the given table. * @return array all unique indexes for the given table.
*/ */
protected function findUniqueIndexes($table) public function findUniqueIndexes($table)
{ {
$indexes = $this->getUniqueIndexInformation($table); $indexes = $this->getUniqueIndexInformation($table);
$uniqueIndexes = []; $uniqueIndexes = [];
......
...@@ -172,7 +172,7 @@ class Schema extends \yii\db\Schema ...@@ -172,7 +172,7 @@ class Schema extends \yii\db\Schema
* @param TableSchema $table the table metadata * @param TableSchema $table the table metadata
* @return array all unique indexes for the given table. * @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) . ')'; $sql = "PRAGMA index_list(" . $this->quoteSimpleTableName($table->name) . ')';
$indexes = $this->db->createCommand($sql)->queryAll(); $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