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
4efeedd3
Commit
4efeedd3
authored
Jun 09, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor coding style fix.
parent
44f78f04
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
Command.php
framework/yii/db/Command.php
+0
-0
QueryBuilder.php
framework/yii/db/mysql/QueryBuilder.php
+3
-3
QueryBuilder.php
framework/yii/db/pgsql/QueryBuilder.php
+0
-1
No files found.
framework/yii/db/Command.php
View file @
4efeedd3
framework/yii/db/mysql/QueryBuilder.php
View file @
4efeedd3
...
@@ -92,9 +92,9 @@ class QueryBuilder extends \yii\db\QueryBuilder
...
@@ -92,9 +92,9 @@ class QueryBuilder extends \yii\db\QueryBuilder
* Builds a SQL statement for removing a primary key constraint to an existing table.
* Builds a SQL statement for removing a primary key constraint to an existing table.
* @param string $name the name of the primary key constraint to be removed.
* @param string $name the name of the primary key constraint to be removed.
* @param string $table the table that the primary key constraint will be removed from.
* @param string $table the table that the primary key constraint will be removed from.
* @return string the SQL statement for removing a primary key constraint from an existing table.
*
* @return string the SQL statement for removing a primary key constraint from an existing table.
*/
*/
public
function
dropPrimary
k
ey
(
$name
,
$table
)
public
function
dropPrimary
K
ey
(
$name
,
$table
)
{
{
return
'ALTER TABLE '
.
$this
->
db
->
quoteTableName
(
$table
)
.
' DROP PRIMARY KEY'
;
return
'ALTER TABLE '
.
$this
->
db
->
quoteTableName
(
$table
)
.
' DROP PRIMARY KEY'
;
}
}
...
@@ -124,7 +124,7 @@ class QueryBuilder extends \yii\db\QueryBuilder
...
@@ -124,7 +124,7 @@ class QueryBuilder extends \yii\db\QueryBuilder
}
elseif
(
$table
===
null
)
{
}
elseif
(
$table
===
null
)
{
throw
new
InvalidParamException
(
"Table not found:
$tableName
"
);
throw
new
InvalidParamException
(
"Table not found:
$tableName
"
);
}
else
{
}
else
{
throw
new
InvalidParamException
(
"There is not sequence associated with table '
$tableName
'.
'
"
);
throw
new
InvalidParamException
(
"There is not sequence associated with table '
$tableName
'."
);
}
}
}
}
...
...
framework/yii/db/pgsql/QueryBuilder.php
View file @
4efeedd3
...
@@ -37,5 +37,4 @@ class QueryBuilder extends \yii\db\QueryBuilder
...
@@ -37,5 +37,4 @@ class QueryBuilder extends \yii\db\QueryBuilder
Schema
::
TYPE_BOOLEAN
=>
'boolean'
,
Schema
::
TYPE_BOOLEAN
=>
'boolean'
,
Schema
::
TYPE_MONEY
=>
'numeric(19,4)'
,
Schema
::
TYPE_MONEY
=>
'numeric(19,4)'
,
);
);
}
}
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