Commit 97b70b28 authored by flip111's avatar flip111

Update SQLServerPlatform.php by adding methods related to schema.

The platform indicates support for schema's here: https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php#L129

But is missing relevant methods:
schemaNeedsCreation() --> to detect if schema creation is needed
and
getCreateSchemaSQL() --> to create a schema
parent 8f119eea
......@@ -163,6 +163,22 @@ class SQLServerPlatform extends AbstractPlatform
return false;
}
/**
* {@inheritDoc}
*/
public function getCreateSchemaSQL($schemaName)
{
return 'CREATE SCHEMA ' . $schemaName;
}
/**
* {@inheritDoc}
*/
public function schemaNeedsCreation($schemaName)
{
return $schemaName !== 'dbo';
}
/**
* {@inheritDoc}
*/
......
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