Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
89f0bfe1
Commit
89f0bfe1
authored
Dec 25, 2013
by
Luciano Baraglia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making accesors public
parent
d376da57
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
Schema.php
framework/yii/db/Schema.php
+1
-1
Schema.php
framework/yii/db/mysql/Schema.php
+1
-1
Schema.php
framework/yii/db/pgsql/Schema.php
+1
-1
Schema.php
framework/yii/db/sqlite/Schema.php
+1
-1
No files found.
framework/yii/db/Schema.php
View file @
89f0bfe1
...
@@ -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
*/
*/
p
rotected
function
findUniqueIndexes
(
$schema
=
''
)
p
ublic
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.'
);
}
}
...
...
framework/yii/db/mysql/Schema.php
View file @
89f0bfe1
...
@@ -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.
*/
*/
p
rotected
function
findUniqueIndexes
(
$table
)
p
ublic
function
findUniqueIndexes
(
$table
)
{
{
$sql
=
$this
->
getCreateTableSql
(
$table
);
$sql
=
$this
->
getCreateTableSql
(
$table
);
$uniqueIndexes
=
[];
$uniqueIndexes
=
[];
...
...
framework/yii/db/pgsql/Schema.php
View file @
89f0bfe1
...
@@ -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.
*/
*/
p
rotected
function
findUniqueIndexes
(
$table
)
p
ublic
function
findUniqueIndexes
(
$table
)
{
{
$indexes
=
$this
->
getUniqueIndexInformation
(
$table
);
$indexes
=
$this
->
getUniqueIndexInformation
(
$table
);
$uniqueIndexes
=
[];
$uniqueIndexes
=
[];
...
...
framework/yii/db/sqlite/Schema.php
View file @
89f0bfe1
...
@@ -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.
*/
*/
p
rotected
function
findUniqueIndexes
(
$table
)
p
ublic
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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment