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
268783a0
Commit
268783a0
authored
Jan 10, 2016
by
Steve Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix CS
parent
130a7748
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
SqlitePlatform.php
lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
+1
-1
SqliteSchemaManager.php
lib/Doctrine/DBAL/Schema/SqliteSchemaManager.php
+9
-0
No files found.
lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
View file @
268783a0
...
...
@@ -580,7 +580,7 @@ class SqlitePlatform extends AbstractPlatform
*/
public
function
getInlineColumnCommentSQL
(
$comment
)
{
return
'--'
.
str_replace
(
"
\n
"
,
"
\n
--"
,
$comment
)
.
"
\n
"
;
return
'--'
.
str_replace
(
"
\n
"
,
"
\n
--"
,
$comment
)
.
"
\n
"
;
}
/**
...
...
lib/Doctrine/DBAL/Schema/SqliteSchemaManager.php
View file @
268783a0
...
...
@@ -263,10 +263,13 @@ class SqliteSchemaManager extends AbstractSchemaManager
}
$comment
=
$this
->
parseColumnCommentFromSQL
(
$columnName
,
$createSql
);
if
(
false
!==
$comment
)
{
$type
=
$this
->
extractDoctrineTypeFromComment
(
$comment
,
null
);
if
(
null
!==
$type
)
{
$column
->
setType
(
Type
::
getType
(
$type
));
$comment
=
$this
->
removeDoctrineTypeFromComment
(
$comment
,
$type
);
}
...
...
@@ -451,6 +454,12 @@ class SqliteSchemaManager extends AbstractSchemaManager
return
false
;
}
/**
* @param string $column
* @param string $sql
*
* @return string|false
*/
private
function
parseColumnCommentFromSQL
(
$column
,
$sql
)
{
if
(
preg_match
(
...
...
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