Commit ea025473 authored by flip111's avatar flip111

Added default namespace when no schema support

The current implementation uses the schema name as namespace name.
Some platforms don't support schema's, but a namespace name still needs to
be present. Added namespace name 'default' when there is no default schema
name.
parent 500ec800
......@@ -107,8 +107,8 @@ class CreateSchemaSqlCollector extends AbstractVisitor
{
$namespace = $asset->getNamespaceName();
if ( !isset($namespace)) {var_dump(get_class($this->platform));
$namespace = $this->platform->getDefaultSchemaName();
if ( !isset($namespace)) {
$namespace = $this->platform->supportsSchemas() ? $this->platform->getDefaultSchemaName() : 'default';
}
if ( !isset($this->createTableQueries[$namespace])) {
......
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