Oracle issues

minor changes on code
This commit is contained in:
Gustavo Piltcher 2011-12-13 00:38:22 -02:00
parent 2316b21952
commit 81d73bb968
2 changed files with 7 additions and 6 deletions

View File

@ -69,12 +69,12 @@ EOT
return;
}
}
$schema = new Schema($tables, null, $sm->createSchemaConfig());
$schema = new Schema($tables, $sm->createSchemaConfig());
foreach ($schema->toSql($connection->getDatabasePlatform()) as $sql) {
$connection->exec($sql);
}
$output->writeln('ACL tables have been initialized successfully.');
}
}
}

View File

@ -27,8 +27,9 @@ final class Schema extends BaseSchema
* Constructor
*
* @param array $options the names for tables
* @param SchemaConfig $schemaConfig
*/
public function __construct(array $options, $unused=null, SchemaConfig $schemaConfig=null)
public function __construct(array $options, SchemaConfig $schemaConfig=null)
{
parent::__construct(array(), array(), $schemaConfig);
@ -82,7 +83,7 @@ final class Schema extends BaseSchema
}
/**
* Adds the object identity table to the schema
* Adds the object identity table to the schema
*/
protected function addObjectIdentitiesTable()
{
@ -132,4 +133,4 @@ final class Schema extends BaseSchema
$table->setPrimaryKey(array('id'));
$table->addUniqueIndex(array('identifier', 'username'));
}
}
}