|
|
|
@ -6,6 +6,7 @@ import liquibase.database.DatabaseConnection;
@@ -6,6 +6,7 @@ import liquibase.database.DatabaseConnection;
|
|
|
|
|
import liquibase.database.DatabaseFactory; |
|
|
|
|
import liquibase.database.jvm.JdbcConnection; |
|
|
|
|
import liquibase.resource.ClassLoaderResourceAccessor; |
|
|
|
|
import org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties; |
|
|
|
|
import org.springframework.context.annotation.Bean; |
|
|
|
|
import org.springframework.context.annotation.Configuration; |
|
|
|
|
|
|
|
|
@ -23,7 +24,7 @@ import javax.sql.DataSource;
@@ -23,7 +24,7 @@ import javax.sql.DataSource;
|
|
|
|
|
@Configuration |
|
|
|
|
public class LiquibaseConfig { |
|
|
|
|
|
|
|
|
|
private static final String LIQUIBASE_CHANGELOG_PREFIX = "ACT_DE_"; |
|
|
|
|
/*private static final String LIQUIBASE_CHANGELOG_PREFIX = "ACT_DE_"; |
|
|
|
|
|
|
|
|
|
@Bean |
|
|
|
|
public Liquibase liquibase(DataSource dataSource) { |
|
|
|
@ -33,11 +34,11 @@ public class LiquibaseConfig {
@@ -33,11 +34,11 @@ public class LiquibaseConfig {
|
|
|
|
|
database.setDatabaseChangeLogTableName(LIQUIBASE_CHANGELOG_PREFIX + database.getDatabaseChangeLogTableName()); |
|
|
|
|
database.setDatabaseChangeLogLockTableName(LIQUIBASE_CHANGELOG_PREFIX + database.getDatabaseChangeLogLockTableName()); |
|
|
|
|
Liquibase liquibase = new Liquibase("META-INF/liquibase/flowable-modeler-app-db-changelog.xml", new ClassLoaderResourceAccessor(), database); |
|
|
|
|
liquibase.update("flowable"); |
|
|
|
|
iquibase.update("flowable"); |
|
|
|
|
return liquibase; |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
throw new RuntimeException("创建liquibase数据库错误", e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|