Skip to content

Commit

Permalink
Migration details fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RHarryH committed Apr 13, 2024
1 parent 95633e7 commit d71cd61
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ when working with DTOs in MicroF.
### 2.0.0 → 2.1.0

1. Access PostgreSQL container console and connect to the db with `psql -U microf` command.
2. Run `/ecm-client-backend/sql/03-schema-ecm-client-postgresql.sql` script to add missing tables.
3. Run `/migration/2_0_0-2_1_0.sql` script to change the type of `id` columns for existing tables. This covers both ECM
2. Run `/migration/2_0_0-2_1_0.sql` script to change the type of `id` columns for existing tables. This covers both ECM
and μF tables.
3. Run `/ecm-client-backend/sql/03-schema-ecm-client-postgresql.sql` script to add missing tables.
4. Load `microf-configuration.zip` from Swagger without configuration override.
2 changes: 1 addition & 1 deletion ecm-client-backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>com.avispa</groupId>
<artifactId>microf</artifactId>
<version>2.1.0</version>
<version>2.1.1</version>
</parent>

<artifactId>ecm-client-backend</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions microf-custom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>com.avispa</groupId>
<artifactId>microf</artifactId>
<version>2.1.0</version>
<version>2.1.1</version>
</parent>

<groupId>com.avispa.microf</groupId>
Expand All @@ -48,7 +48,7 @@
<dependency>
<groupId>com.avispa</groupId>
<artifactId>ecm-client-backend</artifactId>
<version>2.1.0</version>
<version>2.1.1</version>
</dependency>

<dependency>
Expand Down
5 changes: 5 additions & 0 deletions migration/2_0_0-2_1_0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ ALTER TABLE upsert
ALTER TABLE upsert
ALTER COLUMN property_page_id TYPE CHAR(36);

ALTER TABLE list_widget_config
RENAME TO list_widget;
ALTER TABLE list_widget_config_properties
RENAME TO list_widget_properties;

-- Avispa μF
ALTER TABLE address
ALTER COLUMN id TYPE CHAR(36);
Expand Down
15 changes: 14 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</parent>
<groupId>com.avispa</groupId>
<artifactId>microf</artifactId>
<version>2.1.0</version>
<version>2.1.1</version>
<packaging>pom</packaging>
<name>Avispa μF</name>
<description>Simple application for invoice creation and taxes calculation</description>
Expand All @@ -41,6 +41,19 @@
</developer>
</developers>

<repositories>
<repository>
<id>avispa-repository-release</id>
<name>Avispa Repository Release</name>
<url>https://repository.rafalhiszpanski.pl/releases</url>
</repository>
<repository>
<id>avispa-repository-snapshot</id>
<name>Avispa Repository Snapshot</name>
<url>https://repository.rafalhiszpanski.pl/snapshots</url>
</repository>
</repositories>

<modules>
<module>ecm-client-backend</module>
<module>microf-custom</module>
Expand Down

0 comments on commit d71cd61

Please sign in to comment.