mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 19:21:33 +00:00
updated streamline-setup v2
This commit is contained in:
+9
-1
@@ -31,7 +31,7 @@ use function strtolower;
|
||||
* Base class for schema managers. Schema managers are used to inspect and/or
|
||||
* modify the database schema/structure.
|
||||
*
|
||||
* @template T of AbstractPlatform
|
||||
* @template-covariant T of AbstractPlatform
|
||||
*/
|
||||
abstract class AbstractSchemaManager
|
||||
{
|
||||
@@ -1740,6 +1740,10 @@ abstract class AbstractSchemaManager
|
||||
*/
|
||||
public function extractDoctrineTypeFromComment($comment, $currentType)
|
||||
{
|
||||
if ($this->_conn->getConfiguration()->getDisableTypeComments()) {
|
||||
return $currentType;
|
||||
}
|
||||
|
||||
if ($comment !== null && preg_match('(\(DC2Type:(((?!\)).)+)\))', $comment, $match) === 1) {
|
||||
return $match[1];
|
||||
}
|
||||
@@ -1757,6 +1761,10 @@ abstract class AbstractSchemaManager
|
||||
*/
|
||||
public function removeDoctrineTypeFromComment($comment, $type)
|
||||
{
|
||||
if ($this->_conn->getConfiguration()->getDisableTypeComments()) {
|
||||
return $comment;
|
||||
}
|
||||
|
||||
if ($comment === null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user