Commit 196285ad authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Géréation SQL pour exporter un schéma : log du nom de schéma utilisé

parent 37614ec4
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ class IndexController extends AbstractActionController implements ServiceLocator
        $this->log(" Db schema clearing script generator");
        $this->log("=====================================");

        $this->log("# Generating database clearing scripts...");
        $this->log("# Generating database clearing scripts from schema $schemaName...");
        $outputFilePath = $destDir . "/oracle-clear-schema-$schemaName.sql";
        $this->schemaService->createSchemaClearingScriptFile($connection, $outputFilePath);
        $this->log($outputFilePath);
@@ -65,7 +65,7 @@ class IndexController extends AbstractActionController implements ServiceLocator
        $this->log(" Db schema creation script generator");
        $this->log("=====================================");

        $this->log("# Generating schema creation script " . ($refConstraintsIncluded ? 'with' : 'without') . ' ref constraints...');
        $this->log("# Generating schema creation script " . ($refConstraintsIncluded ? 'with' : 'without') . " ref constraints from schema $srcSchemaName...");
        $outputFilePath = $destDir . "/oracle-generate-schema-$dstSchemaName-from-$srcSchemaName.sql";
        $this->schemaService->createSchemaCreationScriptFile($srcConn, $dstConn, $refConstraintsIncluded, $outputFilePath);
        $this->log($outputFilePath);
@@ -97,7 +97,7 @@ class IndexController extends AbstractActionController implements ServiceLocator
        $this->log(" Db data inserts scripts generator");
        $this->log("===================================");

        $this->log("# Generating data inserts scripts...");
        $this->log("# Generating data inserts scripts from schema $srcSchemaName...");
        $tableNames = array_filter(array_map('trim', explode(',', $tableNames)));
        $outputFilePathTemplate = $destDir . "/oracle-data-insert-from-$srcSchemaName.%s-into-$dstSchemaName.sql";
        $outputFilePaths = $this->dataService->createDataInsertsScriptFile($srcConn, $dstSchemaName, $tableNames, $outputFilePathTemplate);
@@ -131,7 +131,7 @@ class IndexController extends AbstractActionController implements ServiceLocator
        $this->log(" Db ref constraints creation script generator");
        $this->log("==============================================");

        $this->log("# Generating ref constraints creation script...");
        $this->log("# Generating ref constraints creation script from schema $srcSchemaName...");
        $outputFilePath = $destDir . "/oracle-generate-ref-constraints-$dstSchemaName-from-$srcSchemaName.sql";
        $this->schemaService->createRefConstraintsCreationScriptFile($srcConn, $dstConn, $outputFilePath);
        $this->log($outputFilePath);