Skip to content

Commit

Permalink
liquibase
Browse files Browse the repository at this point in the history
  • Loading branch information
mspasiano committed Feb 13, 2018
1 parent 011f940 commit b0f2733
Show file tree
Hide file tree
Showing 6 changed files with 2,312 additions and 345 deletions.
Expand Up @@ -20,7 +20,9 @@ public class LiquibaseConfiguration {
public Liquibase liquibase() throws LiquibaseException, SQLException {
Connection connection = it.cnr.jada.util.ejb.EJBCommonServices.getDatasource().getConnection();
Database database = DatabaseFactory.getInstance().findCorrectDatabaseImplementation(new JdbcConnection(connection));

Liquibase liquibase = new Liquibase("db-changelog-master.xml", new GzipClassLoaderResourceAccessor(), database);

liquibase.update(new Contexts(), new LabelExpression());
return liquibase;
}
Expand Down
1 change: 1 addition & 0 deletions sigla-backend/src/main/resources/db-changelog-master.xml
Expand Up @@ -9,5 +9,6 @@
<include file="liquibase/data.xml"/>
<include file="liquibase/constraints.xml"/>
<include file="liquibase/views.xml"/>
<include file="liquibase/oracle-sql4.xml"/>
<include file="liquibase/function.xml"/>
</databaseChangeLog>
@@ -0,0 +1 @@
CREATE INDEX "IX_REGISTRO_INVENTARIO_QUOTE" ON "TMP_STAMPA_REGISTRO_INV_QUOTE" ("CD_CDS", "CD_UNITA_ORGANIZZATIVA", "CATEGORIA", "CD_CATEGORIA_GRUPPO", "NR_INVENTARIO", "CD_TIPO_CARICO_SCARICO", "TIPO")

0 comments on commit b0f2733

Please sign in to comment.