Updated generateSql tool
This commit is contained in:
parent
be979330f8
commit
f239920342
@ -20,7 +20,7 @@ $loader->addPrefixes(array(
|
|||||||
'Symfony' => __DIR__.'/../../../../../..',
|
'Symfony' => __DIR__.'/../../../../../..',
|
||||||
'Doctrine\\Common' => __DIR__.'/../../../../../../../vendor/doctrine-common/lib',
|
'Doctrine\\Common' => __DIR__.'/../../../../../../../vendor/doctrine-common/lib',
|
||||||
'Doctrine\\DBAL\\Migrations' => __DIR__.'/../../../../../../../vendor/doctrine-migrations/lib',
|
'Doctrine\\DBAL\\Migrations' => __DIR__.'/../../../../../../../vendor/doctrine-migrations/lib',
|
||||||
'Doctrine\\DBAL' => __DIR__.'/../../../../../../../vendor/doctrine-dbal/lib',
|
'Doctrine\\DBAL' => __DIR__.'/../../../../../../../vendor/doctrine/dbal/lib',
|
||||||
'Doctrine' => __DIR__.'/../../../../../../../vendor/doctrine/lib',
|
'Doctrine' => __DIR__.'/../../../../../../../vendor/doctrine/lib',
|
||||||
));
|
));
|
||||||
$loader->register();
|
$loader->register();
|
||||||
@ -46,6 +46,6 @@ foreach ($finder as $file) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$platform = $reflection->newInstance();
|
$platform = $reflection->newInstance();
|
||||||
$targetFile = sprintf(__DIR__.'/../schema/%s.sql', $platform->name);
|
$targetFile = sprintf(__DIR__.'/../schema/%s.sql', $platform->getName());
|
||||||
file_put_contents($targetFile, implode("\n\n", $schema->toSql($platform)));
|
file_put_contents($targetFile, implode("\n\n", $schema->toSql($platform)));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user