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
1df859cf
Commit
1df859cf
authored
Jun 10, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo: primarykey -> primaryKey
parent
47655843
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
QueryBuilder.php
framework/yii/db/sqlite/QueryBuilder.php
+1
-1
QueryBuilderTest.php
tests/unit/framework/db/QueryBuilderTest.php
+1
-1
No files found.
framework/yii/db/sqlite/QueryBuilder.php
View file @
1df859cf
...
...
@@ -200,7 +200,7 @@ class QueryBuilder extends \yii\db\QueryBuilder
* @return string the SQL statement for removing a primary key constraint from an existing table.
* @throws NotSupportedException this is not supported by SQLite *
*/
public
function
dropPrimary
k
ey
(
$name
,
$table
)
public
function
dropPrimary
K
ey
(
$name
,
$table
)
{
throw
new
NotSupportedException
(
__METHOD__
.
' is not supported by SQLite.'
);
}
...
...
tests/unit/framework/db/QueryBuilderTest.php
View file @
1df859cf
...
...
@@ -119,7 +119,7 @@ class QueryBuilderTest extends DatabaseTestCase
$this
->
assertEquals
(
1
,
count
(
$tableSchema
->
primaryKey
));
//DROP
$qb
->
db
->
createCommand
()
->
dropPrimary
k
ey
(
$pkeyName
,
$tableName
)
->
execute
();
$qb
->
db
->
createCommand
()
->
dropPrimary
K
ey
(
$pkeyName
,
$tableName
)
->
execute
();
$qb
=
$this
->
getQueryBuilder
();
// resets the schema
$tableSchema
=
$qb
->
db
->
getSchema
()
->
getTableSchema
(
$tableName
);
$this
->
assertEquals
(
0
,
count
(
$tableSchema
->
primaryKey
));
...
...
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