Skip to content

Commit

Permalink
chore: [NOD-901] Liquibase nodo - viste (#2041)
Browse files Browse the repository at this point in the history
* improvements

* Revert "improvements"

This reverts commit 367d041.

* added script for views

* added view to cfg-partner
  • Loading branch information
aomegax authored May 20, 2024
1 parent 091099c commit 9b31213
Show file tree
Hide file tree
Showing 6 changed files with 160 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd">


<changeSet author="liquibase" id="2024051700000">
<renameView
newViewName="elenco_servizi_view_master"
oldViewName="elenco_servizi_view"
/>

<createTable tableName="elenco_servizi_view">
<column name="obj_id" type="NUMERIC"/>
<column name="psp_id" type="VARCHAR(35)"/>
<column name="flusso_id" type="VARCHAR(35)"/>
<column name="psp_rag_soc" type="VARCHAR(255)"/>
<column name="psp_flag_storno" type="CHAR(1)"/>
<column name="psp_flag_bollo" type="CHAR(1)"/>
<column name="intm_id" type="VARCHAR(35)"/>
<column name="canale_id" type="VARCHAR(35)"/>
<column name="nome_servizio" type="VARCHAR(35)"/>
<column name="canale_mod_pag" type="numeric(19)"/>
<column name="tipo_vers_cod" type="VARCHAR(255)"/>
<column name="codice_lingua" type="CHAR(2)"/>
<column name="inf_cond_ec_max" type="VARCHAR(35)"/>
<column name="inf_desc_serv" type="VARCHAR(511)"/>
<column name="inf_disp_serv" type="VARCHAR(511)"/>
<column name="inf_url_canale" type="VARCHAR(255)"/>
<column name="importo_minimo" type="FLOAT4"/>
<column name="importo_massimo" type="FLOAT4"/>
<column name="costo_fisso" type="FLOAT4"/>
<column name="timestamp_ins" type="TIMESTAMP WITHOUT TIME ZONE"/>
<column name="data_validita" type="TIMESTAMP WITHOUT TIME ZONE"/>
<column name="logo_psp" type="BYTEA"/>
<column name="tags" type="VARCHAR(135)"/>
<column name="logo_servizio" type="BYTEA"/>
<column name="canale_app" type="CHAR(1)"/>
<column name="on_us" type="CHAR(1)"/>
<column name="carrello_carte" type="CHAR(1)"/>
<column name="codice_abi" type="VARCHAR(5)"/>
<column name="codice_mybank" type="VARCHAR(35)"/>
<column name="codice_convenzione" type="VARCHAR(35)"/>
<column name="flag_io" type="CHAR(1)"/>
</createTable>

</changeSet>

</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd">


<changeSet author="liquibase" id="2024051701000">
<renameView
newViewName="cdi_preferences_view_master"
oldViewName="cdi_preferences_view"
/>

<createTable tableName="cdi_preferences_view">
<column name="obj_id" type="NUMERIC"/>
<column name="fk_informativa_detail" type="numeric">
<constraints nullable="false"/>
</column>
<column name="seller" type="VARCHAR(255)">
<constraints nullable="false"/>
</column>
<column name="buyer" type="VARCHAR(255)"/>
<column name="costo_convenzione" type="numeric(19)">
<constraints nullable="false"/>
</column>
</createTable>

</changeSet>

</databaseChangeLog>
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
<include file="./db.changelog-master-3.27.0.xml"/>

<include file="./${version}/db.changelog-20240410000000_metadata_ibanappoggio.xml" labels="${version}"/>
<include file="./${version}/db.changelog-20240517000000_elenco_servizi_view.xml" labels="${version}"/>
<include file="./${version}/db.changelog-20240517010000_cdi_preferences_view.xml" labels="${version}"/>

</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd">


<changeSet author="liquibase" id="2024051700000">
<renameView
newViewName="elenco_servizi_view_master"
oldViewName="elenco_servizi_view"
/>

<createTable tableName="elenco_servizi_view">
<column name="obj_id" type="NUMERIC"/>
<column name="psp_id" type="VARCHAR(35)"/>
<column name="flusso_id" type="VARCHAR(35)"/>
<column name="psp_rag_soc" type="VARCHAR(255)"/>
<column name="psp_flag_storno" type="CHAR(1)"/>
<column name="psp_flag_bollo" type="CHAR(1)"/>
<column name="intm_id" type="VARCHAR(35)"/>
<column name="canale_id" type="VARCHAR(35)"/>
<column name="nome_servizio" type="VARCHAR(35)"/>
<column name="canale_mod_pag" type="numeric(19)"/>
<column name="tipo_vers_cod" type="VARCHAR(255)"/>
<column name="codice_lingua" type="CHAR(2)"/>
<column name="inf_cond_ec_max" type="VARCHAR(35)"/>
<column name="inf_desc_serv" type="VARCHAR(511)"/>
<column name="inf_disp_serv" type="VARCHAR(511)"/>
<column name="inf_url_canale" type="VARCHAR(255)"/>
<column name="importo_minimo" type="FLOAT4"/>
<column name="importo_massimo" type="FLOAT4"/>
<column name="costo_fisso" type="FLOAT4"/>
<column name="timestamp_ins" type="TIMESTAMP WITHOUT TIME ZONE"/>
<column name="data_validita" type="TIMESTAMP WITHOUT TIME ZONE"/>
<column name="logo_psp" type="BYTEA"/>
<column name="tags" type="VARCHAR(135)"/>
<column name="logo_servizio" type="BYTEA"/>
<column name="canale_app" type="CHAR(1)"/>
<column name="on_us" type="CHAR(1)"/>
<column name="carrello_carte" type="CHAR(1)"/>
<column name="codice_abi" type="VARCHAR(5)"/>
<column name="codice_mybank" type="VARCHAR(35)"/>
<column name="codice_convenzione" type="VARCHAR(35)"/>
<column name="flag_io" type="CHAR(1)"/>
</createTable>

</changeSet>

</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd">


<changeSet author="liquibase" id="2024051701000">
<renameView
newViewName="cdi_preferences_view_master"
oldViewName="cdi_preferences_view"
/>

<createTable tableName="cdi_preferences_view">
<column name="obj_id" type="NUMERIC"/>
<column name="fk_informativa_detail" type="numeric">
<constraints nullable="false"/>
</column>
<column name="seller" type="VARCHAR(255)">
<constraints nullable="false"/>
</column>
<column name="buyer" type="VARCHAR(255)"/>
<column name="costo_convenzione" type="numeric(19)">
<constraints nullable="false"/>
</column>
</createTable>

</changeSet>

</databaseChangeLog>
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
<include file="./db.changelog-master-3.27.0.xml"/>

<include file="./${version}/db.changelog-20240410000000_metadata_ibanappoggio.xml" labels="${version}"/>
<include file="./${version}/db.changelog-20240517000000_elenco_servizi_view.xml" labels="${version}"/>
<include file="./${version}/db.changelog-20240517010000_cdi_preferences_view.xml" labels="${version}"/>

</databaseChangeLog>

0 comments on commit 9b31213

Please sign in to comment.