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: [PAGOPA-1814] Global index tables (#2122)
* improvements * Revert "improvements" This reverts commit 367d041. * added new tables to manage global indexes * fix liquibase * fix liquibase * updated procedure
- Loading branch information
Showing
6 changed files
with
293 additions
and
63 deletions.
There are no files selected for viewing
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
30 changes: 30 additions & 0 deletions
30
...psql/nodo/liquibase/changelog/offline/3.26.0/db.changelog-20240610000000_global_index.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,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<databaseChangeLog | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:pro="http://www.liquibase.org/xml/ns/pro" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd | ||
http://www.liquibase.org/xml/ns/pro | ||
http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd"> | ||
|
||
<!-- <changeSet author="liquibase" id="20240610000000-1">--> | ||
<!-- <createTable tableName="ELENCO_SERVIZI_PSP_GI">--> | ||
<!-- <column name="ID" type="NUMBER">--> | ||
<!-- <constraints nullable="false" primaryKey="true" primaryKeyName="esp_gi_pk"/>--> | ||
<!-- </column>--> | ||
<!-- <column name="FK_SNAPSHOT_VERSION" type="NUMBER(19, 0)">--> | ||
<!-- <constraints nullable="false" primaryKey="true" primaryKeyName="esp_gi_pk"/>--> | ||
<!-- </column>--> | ||
<!-- </createTable>--> | ||
<!-- </changeSet>--> | ||
|
||
<!-- <changeSet author="liquibase" id="20240610000000-2">--> | ||
<!-- <createTable tableName="ELENCO_SERVIZI_PSP_SYNC_STATUS_GI">--> | ||
<!-- <column name="SNAPSHOT_VERSION" type="NUMBER(19, 0)">--> | ||
<!-- <constraints nullable="false" primaryKey="true" primaryKeyName="espss_gi_pk"/>--> | ||
<!-- </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
129 changes: 129 additions & 0 deletions
129
src/psql/nodo/liquibase/changelog/online/3.26.0/db.changelog-20240610000000_global_index.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,129 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<databaseChangeLog | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:pro="http://www.liquibase.org/xml/ns/pro" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd | ||
http://www.liquibase.org/xml/ns/pro | ||
http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd"> | ||
|
||
<!-- <changeSet author="liquibase" id="20240610000000-1">--> | ||
<!-- <createTable tableName="VERIFICA_BOLLETTINO_GI">--> | ||
<!-- <column name="NOTICE_ID" type="VARCHAR2(50)">--> | ||
<!-- <constraints nullable="false" primaryKey="true" primaryKeyName="vb_gi_pk"/>--> | ||
<!-- </column>--> | ||
<!-- <column name="PA_FISCAL_CODE" type="VARCHAR2(50)">--> | ||
<!-- <constraints nullable="false" primaryKey="true" primaryKeyName="vb_gi_pk"/>--> | ||
<!-- </column>--> | ||
<!-- </createTable>--> | ||
<!-- </changeSet>--> | ||
|
||
<changeSet author="liquibase" id="20240610000000-1"> | ||
<createTable tableName="STATI_CARRELLO_SNAPSHOT_GI"> | ||
<column name="ID_CARRELLO" type="VARCHAR2(35)"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="scs_gi_pk"/> | ||
</column> | ||
<column name="INSERTED_TIMESTAMP" type="TIMESTAMP(6)"> | ||
<constraints nullable="false"/> | ||
</column> | ||
</createTable> | ||
</changeSet> | ||
|
||
<changeSet author="liquibase" id="20240610000000-2"> | ||
<createTable tableName="RPT_GI"> | ||
<column name="IDENT_DOMINIO" type="VARCHAR2(35)"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="rpt_gi_pk"/> | ||
</column> | ||
<column name="IUV" type="VARCHAR2(35)"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="rpt_gi_pk"/> | ||
</column> | ||
<column name="CCP" type="VARCHAR2(35)"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="rpt_gi_pk"/> | ||
</column> | ||
<column name="INSERTED_TIMESTAMP" type="TIMESTAMP(6)"> | ||
<constraints nullable="false"/> | ||
</column> | ||
</createTable> | ||
</changeSet> | ||
|
||
<changeSet author="liquibase" id="20240610000000-3"> | ||
<createTable tableName="RT_GI"> | ||
<column name="IDENT_DOMINIO" type="VARCHAR2(35)"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="rt_gi_pk"/> | ||
</column> | ||
<column name="IUV" type="VARCHAR2(35)"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="rt_gi_pk"/> | ||
</column> | ||
<column name="CCP" type="VARCHAR2(35)"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="rt_gi_pk"/> | ||
</column> | ||
<column name="INSERTED_TIMESTAMP" type="TIMESTAMP(6)"> | ||
<constraints nullable="false"/> | ||
</column> | ||
</createTable> | ||
</changeSet> | ||
|
||
<changeSet author="liquibase" id="20240610000000-4"> | ||
<createTable tableName="POSITION_SERVICE_GI"> | ||
<column name="PA_FISCAL_CODE" type="VARCHAR2(50)"> | ||
<constraints nullable="true" primaryKey="true" primaryKeyName="ps_gi_pk"/> | ||
</column> | ||
<column name="NOTICE_ID" type="VARCHAR2(50)"> | ||
<constraints nullable="true" primaryKey="true" primaryKeyName="ps_gi_pk"/> | ||
</column> | ||
<column name="INSERTED_TIMESTAMP" type="TIMESTAMP(6)"> | ||
<constraints nullable="false"/> | ||
</column> | ||
</createTable> | ||
</changeSet> | ||
|
||
<changeSet author="liquibase" id="20240610000000-5"> | ||
<createTable tableName="STATI_RPT_SNAPSHOT_GI"> | ||
<column name="ID_DOMINIO" type="VARCHAR2(35)"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="sps_gi_pk"/> | ||
</column> | ||
<column name="IUV" type="VARCHAR2(35)"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="sps_gi_pk"/> | ||
</column> | ||
<column name="CCP" type="VARCHAR2(35)"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="sps_gi_pk"/> | ||
</column> | ||
<column name="INSERTED_TIMESTAMP" type="TIMESTAMP(6)"> | ||
<constraints nullable="false"/> | ||
</column> | ||
</createTable> | ||
</changeSet> | ||
|
||
<!-- <changeSet author="liquibase" id="20240610000000-6">--> | ||
<!-- <createTable tableName="RPT_SOGGETTI_GI">--> | ||
<!-- <column name="RPT_ID" type="NUMBER(19, 0)">--> | ||
<!-- <constraints nullable="false" primaryKey="true" primaryKeyName="rs_gi_pk"/>--> | ||
<!-- </column>--> | ||
<!-- <column name="TIPO_SOGGETTO" type="CHAR(1)">--> | ||
<!-- <constraints nullable="false" primaryKey="true" primaryKeyName="rs_gi_pk"/>--> | ||
<!-- </column>--> | ||
<!-- <column name="INSERTED_TIMESTAMP" type="TIMESTAMP(6)">--> | ||
<!-- <constraints nullable="false"/>--> | ||
<!-- </column>--> | ||
<!-- </createTable>--> | ||
<!-- </changeSet>--> | ||
|
||
<changeSet author="liquibase" id="20240610000000-7"> | ||
<createTable tableName="RETRY_PA_INVIA_RT_GI"> | ||
<column name="ID_DOMINIO" type="VARCHAR2(35)"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="rpir_gi_pk"/> | ||
</column> | ||
<column name="IUV" type="VARCHAR2(35)"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="rpir_gi_pk"/> | ||
</column> | ||
<column name="CCP" type="VARCHAR2(35)"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="rpir_gi_pk"/> | ||
</column> | ||
<column name="INSERTED_TIMESTAMP" type="TIMESTAMP(6)"> | ||
<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
45 changes: 45 additions & 0 deletions
45
src/psql/nodo/liquibase/changelog/wfesp/3.26.0/db.changelog-20240610000000_global_index.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,45 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<databaseChangeLog | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:pro="http://www.liquibase.org/xml/ns/pro" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd | ||
http://www.liquibase.org/xml/ns/pro | ||
http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd"> | ||
|
||
<changeSet author="liquibase" id="20240610000000-1"> | ||
<createTable tableName="RPT_GI"> | ||
<column name="CODICE_CARRELLO" type="VARCHAR2(128)"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="r_gi_pk"/> | ||
</column> | ||
<column name="PSP" type="VARCHAR2(35)"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="r_gi_pk"/> | ||
</column> | ||
<column name="PARAMETRI_PAGAMENTO_IMMEDIATO" type="VARCHAR2(255)"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="r_gi_pk"/> | ||
</column> | ||
<column name="INSERTED_TIMESTAMP" type="TIMESTAMP(6)"> | ||
<constraints nullable="false"/> | ||
</column> | ||
</createTable> | ||
</changeSet> | ||
|
||
<changeSet author="liquibase" id="20240610000000-2"> | ||
<createTable tableName="CARRELLO_RPT_GI"> | ||
<column name="CODICE_CARRELLO" type="VARCHAR2(128 )"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="cr_gi_pk"/> | ||
</column> | ||
<column name="PSP" type="VARCHAR2(35 )"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="cr_gi_pk"/> | ||
</column> | ||
<column name="PARAMETRI_PAGAMENTO_IMMEDIATO" type="VARCHAR2(255)"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="cr_gi_pk"/> | ||
</column> | ||
<column name="INSERTED_TIMESTAMP" type="TIMESTAMP(6)"> | ||
<constraints nullable="false"/> | ||
</column> | ||
</createTable> | ||
</changeSet> | ||
|
||
</databaseChangeLog> |