Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
oracle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lib
unicaen
oracle
Commits
67413bf8
Commit
67413bf8
authored
Jul 1, 2019
by
Bertrand Gauthier
Browse files
Options
Downloads
Patches
Plain Diff
Correction inversion connexion source et destination !
parent
dfae5296
No related branches found
No related tags found
No related merge requests found
Pipeline
#4753
passed
Jul 1, 2019
Stage: publish
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/UnicaenOracle/Service/SchemaService.php
+9
-5
9 additions, 5 deletions
src/UnicaenOracle/Service/SchemaService.php
with
9 additions
and
5 deletions
src/UnicaenOracle/Service/SchemaService.php
+
9
−
5
View file @
67413bf8
...
@@ -71,7 +71,8 @@ class SchemaService
...
@@ -71,7 +71,8 @@ class SchemaService
// config DBMS Metadata
// config DBMS Metadata
try
{
try
{
$stmt
=
$srcConn
->
executeQuery
(
$this
->
generateSQLForDBMSMetadataPackageConfiguration
());
$sql
=
$this
->
generateSQLForDBMSMetadataPackageConfiguration
();
$stmt
=
$srcConn
->
executeQuery
(
$sql
);
$stmt
->
execute
();
$stmt
->
execute
();
}
catch
(
DBALException
$e
)
{
}
catch
(
DBALException
$e
)
{
throw
new
RuntimeException
(
"Erreur!"
,
null
,
$e
);
throw
new
RuntimeException
(
"Erreur!"
,
null
,
$e
);
...
@@ -79,7 +80,8 @@ class SchemaService
...
@@ -79,7 +80,8 @@ class SchemaService
// génération DDL
// génération DDL
try
{
try
{
$stmt
=
$srcConn
->
prepare
(
$this
->
generateSQLForSchemaCreation
(
$dstConn
,
$refConstraintsIncluded
));
$sql
=
$this
->
generateSQLForSchemaCreation
(
$srcConn
,
$refConstraintsIncluded
);
$stmt
=
$srcConn
->
prepare
(
$sql
);
$stmt
->
execute
();
$stmt
->
execute
();
}
catch
(
DBALException
$e
)
{
}
catch
(
DBALException
$e
)
{
throw
new
RuntimeException
(
"Erreur!"
,
null
,
$e
);
throw
new
RuntimeException
(
"Erreur!"
,
null
,
$e
);
...
@@ -112,7 +114,8 @@ class SchemaService
...
@@ -112,7 +114,8 @@ class SchemaService
// config DBMS Metadata
// config DBMS Metadata
try
{
try
{
$stmt
=
$srcConn
->
executeQuery
(
$this
->
generateSQLForDBMSMetadataPackageConfiguration
());
$sql
=
$this
->
generateSQLForDBMSMetadataPackageConfiguration
();
$stmt
=
$srcConn
->
executeQuery
(
$sql
);
$stmt
->
execute
();
$stmt
->
execute
();
}
catch
(
DBALException
$e
)
{
}
catch
(
DBALException
$e
)
{
throw
new
RuntimeException
(
"Erreur!"
,
null
,
$e
);
throw
new
RuntimeException
(
"Erreur!"
,
null
,
$e
);
...
@@ -120,7 +123,8 @@ class SchemaService
...
@@ -120,7 +123,8 @@ class SchemaService
// génération des contraintes de référence
// génération des contraintes de référence
try
{
try
{
$stmt
=
$srcConn
->
prepare
(
$this
->
generateSQLForRefConstraintsCreation
(
$dstConn
));
$sql
=
$this
->
generateSQLForRefConstraintsCreation
(
$srcConn
);
$stmt
=
$srcConn
->
prepare
(
$sql
);
$stmt
->
execute
();
$stmt
->
execute
();
}
catch
(
DBALException
$e
)
{
}
catch
(
DBALException
$e
)
{
throw
new
RuntimeException
(
"Erreur!"
,
null
,
$e
);
throw
new
RuntimeException
(
"Erreur!"
,
null
,
$e
);
...
@@ -296,7 +300,7 @@ EOS;
...
@@ -296,7 +300,7 @@ EOS;
* @param bool $refConstraintsIncluded
* @param bool $refConstraintsIncluded
* @return string
* @return string
*/
*/
function
generateSQLForSchemaCreation
(
Connection
$connection
,
$refConstraintsIncluded
=
true
)
function
~~
generateSQLForSchemaCreation
(
Connection
$connection
,
$refConstraintsIncluded
=
true
)
{
{
$schemaName
=
$this
->
extractSchemaNameFromConnection
(
$connection
);
$schemaName
=
$this
->
extractSchemaNameFromConnection
(
$connection
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment