Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
ef32ada0
Commit
ef32ada0
authored
17 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
LMS-23
bugs fixed SVN: 304
parent
f0c498f7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dbmigration/source/java/ch/systemsx/cisd/dbmigration/DBMigrationEngine.java
+11
-4
11 additions, 4 deletions
.../java/ch/systemsx/cisd/dbmigration/DBMigrationEngine.java
with
11 additions
and
4 deletions
dbmigration/source/java/ch/systemsx/cisd/dbmigration/DBMigrationEngine.java
+
11
−
4
View file @
ef32ada0
...
...
@@ -156,7 +156,16 @@ public class DBMigrationEngine
{
String
dropDatabaseSQL
=
createScript
(
"dropDatabase.sql"
,
owner
,
databaseName
);
JdbcTemplate
template
=
new
JdbcTemplate
(
metaDataSource
);
template
.
execute
(
dropDatabaseSQL
);
try
{
template
.
execute
(
dropDatabaseSQL
);
}
catch
(
DataAccessException
ex
)
{
if
(
isDBNotExistException
(
ex
)
==
false
)
{
throw
ex
;
}
}
}
private
void
setupDatabase
()
...
...
@@ -205,8 +214,6 @@ public class DBMigrationEngine
final
String
createScript
=
loadScript
(
"initial.sql"
);
template
.
execute
(
createScript
);
final
String
masterDataScript
=
loadScript
(
"initialData.sql"
);
template
.
execute
(
masterDataScript
);
}
private
void
fillWithInitialData
()
...
...
@@ -260,7 +267,7 @@ public class DBMigrationEngine
Connection
connection
=
null
;
try
{
connection
=
DataSourceUtils
.
getConnection
(
dataSource
);
connection
=
DataSourceUtils
.
getConnection
(
dataSource
);
return
true
;
}
catch
(
DataAccessException
ex
)
{
...
...
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