Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Tomáš Trávníček
doctrine-dbal
Commits
730fec42
Unverified
Commit
730fec42
authored
May 15, 2018
by
Sergei Morozov
Committed by
GitHub
May 15, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3143 from AlessandroMinoccheri/initalize_array
initialize sql array into platform files
parents
7021bdf7
4fa36f17
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
DrizzlePlatform.php
lib/Doctrine/DBAL/Platforms/DrizzlePlatform.php
+1
-1
MySqlPlatform.php
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
+1
-1
PostgreSqlPlatform.php
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
+1
-1
SQLServerPlatform.php
lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php
+1
-1
SqlitePlatform.php
lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
+1
-1
No files found.
lib/Doctrine/DBAL/Platforms/DrizzlePlatform.php
View file @
730fec42
...
...
@@ -240,7 +240,7 @@ class DrizzlePlatform extends AbstractPlatform
$query
.=
$this
->
buildTableOptions
(
$options
);
$query
.=
$this
->
buildPartitionOptions
(
$options
);
$sql
[]
=
$query
;
$sql
=
[
$query
]
;
if
(
isset
(
$options
[
'foreignKeys'
]))
{
foreach
((
array
)
$options
[
'foreignKeys'
]
as
$definition
)
{
...
...
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
View file @
730fec42
...
...
@@ -457,7 +457,7 @@ class MySqlPlatform extends AbstractPlatform
$query
.=
$this
->
buildTableOptions
(
$options
);
$query
.=
$this
->
buildPartitionOptions
(
$options
);
$sql
[]
=
$query
;
$sql
=
[
$query
]
;
$engine
=
'INNODB'
;
if
(
isset
(
$options
[
'engine'
]))
{
...
...
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
View file @
730fec42
...
...
@@ -782,7 +782,7 @@ class PostgreSqlPlatform extends AbstractPlatform
$query
=
'CREATE TABLE '
.
$tableName
.
' ('
.
$queryFields
.
')'
;
$sql
[]
=
$query
;
$sql
=
[
$query
]
;
if
(
isset
(
$options
[
'indexes'
])
&&
!
empty
(
$options
[
'indexes'
]))
{
foreach
(
$options
[
'indexes'
]
as
$index
)
{
...
...
lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php
View file @
730fec42
...
...
@@ -304,7 +304,7 @@ class SQLServerPlatform extends AbstractPlatform
}
$query
.=
')'
;
$sql
[]
=
$query
;
$sql
=
[
$query
]
;
if
(
isset
(
$options
[
'indexes'
])
&&
!
empty
(
$options
[
'indexes'
]))
{
foreach
(
$options
[
'indexes'
]
as
$index
)
{
...
...
lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
View file @
730fec42
...
...
@@ -351,7 +351,7 @@ class SqlitePlatform extends AbstractPlatform
}
}
$query
[]
=
'CREATE TABLE '
.
$name
.
' ('
.
$queryFields
.
')'
;
$query
=
[
'CREATE TABLE '
.
$name
.
' ('
.
$queryFields
.
')'
]
;
if
(
isset
(
$options
[
'alter'
])
&&
true
===
$options
[
'alter'
])
{
return
$query
;
...
...
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