org.sonar.core.persistence
Class DatabaseMigrator
java.lang.Object
org.sonar.core.persistence.DatabaseMigrator
- All Implemented Interfaces:
- ServerComponent
public class DatabaseMigrator
- extends Object
- implements ServerComponent
Restore schema by executing DDL scripts. Only Derby database is supported.
Other databases are created by Ruby on Rails migrations.
- Since:
- 2.12
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseMigrator
public DatabaseMigrator(MyBatis myBatis,
Database database)
createDatabase
public boolean createDatabase()
- Returns:
- true if the database has been created, false if this database is not supported
Copyright © 2009-2012 SonarSource. All Rights Reserved.