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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lib
unicaen
oracle
Commits
196285ad
Commit
196285ad
authored
5 years ago
by
Bertrand Gauthier
Browse files
Options
Downloads
Patches
Plain Diff
Géréation SQL pour exporter un schéma : log du nom de schéma utilisé
parent
37614ec4
No related branches found
No related tags found
No related merge requests found
Pipeline
#11382
failed
3 years ago
Stage: publish
Changes
1
Pipelines
6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/UnicaenOracle/Controller/IndexController.php
+4
-4
4 additions, 4 deletions
src/UnicaenOracle/Controller/IndexController.php
with
4 additions
and
4 deletions
src/UnicaenOracle/Controller/IndexController.php
+
4
−
4
View file @
196285ad
...
...
@@ -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
);
...
...
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