generated from pagopa/terraform-infrastructure-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: [NOD-901] Liquibase nodo - viste (#2041)
* improvements * Revert "improvements" This reverts commit 367d041. * added script for views * added view to cfg-partner
- Loading branch information
Showing
6 changed files
with
160 additions
and
0 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
...iquibase/changelog/cfg-partner/3.28.0/db.changelog-20240517000000_elenco_servizi_view.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
29 changes: 29 additions & 0 deletions
29
...quibase/changelog/cfg-partner/3.28.0/db.changelog-20240517010000_cdi_preferences_view.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...l/nodo/liquibase/changelog/cfg/3.28.0/db.changelog-20240517000000_elenco_servizi_view.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
29 changes: 29 additions & 0 deletions
29
.../nodo/liquibase/changelog/cfg/3.28.0/db.changelog-20240517010000_cdi_preferences_view.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters