Loading src/UnicaenOracle/Service/SchemaService.php +9 −5 Original line number Diff line number Diff line Loading @@ -71,7 +71,8 @@ class SchemaService // config DBMS Metadata try { $stmt = $srcConn->executeQuery($this->generateSQLForDBMSMetadataPackageConfiguration()); $sql = $this->generateSQLForDBMSMetadataPackageConfiguration(); $stmt = $srcConn->executeQuery($sql); $stmt->execute(); } catch (DBALException $e) { throw new RuntimeException("Erreur!", null, $e); Loading @@ -79,7 +80,8 @@ class SchemaService // génération DDL try { $stmt = $srcConn->prepare($this->generateSQLForSchemaCreation($dstConn, $refConstraintsIncluded)); $sql = $this->generateSQLForSchemaCreation($srcConn, $refConstraintsIncluded); $stmt = $srcConn->prepare($sql); $stmt->execute(); } catch (DBALException $e) { throw new RuntimeException("Erreur!", null, $e); Loading Loading @@ -112,7 +114,8 @@ class SchemaService // config DBMS Metadata try { $stmt = $srcConn->executeQuery($this->generateSQLForDBMSMetadataPackageConfiguration()); $sql = $this->generateSQLForDBMSMetadataPackageConfiguration(); $stmt = $srcConn->executeQuery($sql); $stmt->execute(); } catch (DBALException $e) { throw new RuntimeException("Erreur!", null, $e); Loading @@ -120,7 +123,8 @@ class SchemaService // génération des contraintes de référence try { $stmt = $srcConn->prepare($this->generateSQLForRefConstraintsCreation($dstConn)); $sql = $this->generateSQLForRefConstraintsCreation($srcConn); $stmt = $srcConn->prepare($sql); $stmt->execute(); } catch (DBALException $e) { throw new RuntimeException("Erreur!", null, $e); Loading Loading @@ -296,7 +300,7 @@ EOS; * @param bool $refConstraintsIncluded * @return string */ function generateSQLForSchemaCreation(Connection $connection, $refConstraintsIncluded = true) function ~~generateSQLForSchemaCreation(Connection $connection, $refConstraintsIncluded = true) { $schemaName = $this->extractSchemaNameFromConnection($connection); Loading Loading
src/UnicaenOracle/Service/SchemaService.php +9 −5 Original line number Diff line number Diff line Loading @@ -71,7 +71,8 @@ class SchemaService // config DBMS Metadata try { $stmt = $srcConn->executeQuery($this->generateSQLForDBMSMetadataPackageConfiguration()); $sql = $this->generateSQLForDBMSMetadataPackageConfiguration(); $stmt = $srcConn->executeQuery($sql); $stmt->execute(); } catch (DBALException $e) { throw new RuntimeException("Erreur!", null, $e); Loading @@ -79,7 +80,8 @@ class SchemaService // génération DDL try { $stmt = $srcConn->prepare($this->generateSQLForSchemaCreation($dstConn, $refConstraintsIncluded)); $sql = $this->generateSQLForSchemaCreation($srcConn, $refConstraintsIncluded); $stmt = $srcConn->prepare($sql); $stmt->execute(); } catch (DBALException $e) { throw new RuntimeException("Erreur!", null, $e); Loading Loading @@ -112,7 +114,8 @@ class SchemaService // config DBMS Metadata try { $stmt = $srcConn->executeQuery($this->generateSQLForDBMSMetadataPackageConfiguration()); $sql = $this->generateSQLForDBMSMetadataPackageConfiguration(); $stmt = $srcConn->executeQuery($sql); $stmt->execute(); } catch (DBALException $e) { throw new RuntimeException("Erreur!", null, $e); Loading @@ -120,7 +123,8 @@ class SchemaService // génération des contraintes de référence try { $stmt = $srcConn->prepare($this->generateSQLForRefConstraintsCreation($dstConn)); $sql = $this->generateSQLForRefConstraintsCreation($srcConn); $stmt = $srcConn->prepare($sql); $stmt->execute(); } catch (DBALException $e) { throw new RuntimeException("Erreur!", null, $e); Loading Loading @@ -296,7 +300,7 @@ EOS; * @param bool $refConstraintsIncluded * @return string */ function generateSQLForSchemaCreation(Connection $connection, $refConstraintsIncluded = true) function ~~generateSQLForSchemaCreation(Connection $connection, $refConstraintsIncluded = true) { $schemaName = $this->extractSchemaNameFromConnection($connection); Loading