Commit 268783a0 authored by Steve Müller's avatar Steve Müller

fix CS

parent 130a7748
......@@ -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";
}
/**
......
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment