From f715698f7b13f872043c31b2507eb8add77a6e91 Mon Sep 17 00:00:00 2001 From: Vadim Date: Tue, 10 Jul 2018 17:04:48 +0300 Subject: [PATCH 1/2] Merge 1868: revert changes to default one, add new change set with fixes # Conflicts: # libreplan-business/src/main/resources/db.changelog-1.4.xml # libreplan-business/src/main/resources/db.changelog.xml --- .../src/main/resources/db.changelog-1.4.1.xml | 33 +++++++++++++++++++ .../src/main/resources/db.changelog-1.4.xml | 17 ++++++---- .../src/main/resources/db.changelog.xml | 1 + 3 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 libreplan-business/src/main/resources/db.changelog-1.4.1.xml diff --git a/libreplan-business/src/main/resources/db.changelog-1.4.1.xml b/libreplan-business/src/main/resources/db.changelog-1.4.1.xml new file mode 100644 index 000000000..0d3ac2124 --- /dev/null +++ b/libreplan-business/src/main/resources/db.changelog-1.4.1.xml @@ -0,0 +1,33 @@ + + + + + + ALTER TABLE limits ADD tmp_id BIGINT; + UPDATE limits SET tmp_id = id; + ALTER TABLE limits DROP CONSTRAINT limits_pkey; + ALTER TABLE limits DROP COLUMN id; + ALTER TABLE limits RENAME COLUMN tmp_id TO id; + + + + + + + UPDATE limits SET value = 0; + + + + + + + + \ No newline at end of file diff --git a/libreplan-business/src/main/resources/db.changelog-1.4.xml b/libreplan-business/src/main/resources/db.changelog-1.4.xml index 160694554..a92cccb40 100644 --- a/libreplan-business/src/main/resources/db.changelog-1.4.xml +++ b/libreplan-business/src/main/resources/db.changelog-1.4.xml @@ -2,7 +2,7 @@ + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd"> Add column to criterion table to store the relationship with cost category @@ -24,7 +24,12 @@ - + + @@ -42,7 +47,7 @@ - + @@ -52,15 +57,15 @@ - INSERT INTO limits VALUES(1, 'users', 0); - INSERT INTO limits VALUES(2, 'workers+machines', 0); + INSERT INTO limits VALUES(0, 'users', 5); + INSERT INTO limits VALUES(1, 'workers+machines', 10); diff --git a/libreplan-business/src/main/resources/db.changelog.xml b/libreplan-business/src/main/resources/db.changelog.xml index 99bc85a99..54ff3a809 100644 --- a/libreplan-business/src/main/resources/db.changelog.xml +++ b/libreplan-business/src/main/resources/db.changelog.xml @@ -11,6 +11,7 @@ + From 8091c8540dc9097c41119f40e026ad094830cbeb Mon Sep 17 00:00:00 2001 From: vmazurashu Date: Wed, 11 Jul 2018 11:02:37 +0300 Subject: [PATCH 2/2] #1868: revert changes to default one, add new change set with fixes --- .../src/main/resources/db.changelog-1.4.1.xml | 8 +++++--- .../src/main/resources/db.changelog-1.4.xml | 16 ++++++++-------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/libreplan-business/src/main/resources/db.changelog-1.4.1.xml b/libreplan-business/src/main/resources/db.changelog-1.4.1.xml index 0d3ac2124..ba2da318d 100644 --- a/libreplan-business/src/main/resources/db.changelog-1.4.1.xml +++ b/libreplan-business/src/main/resources/db.changelog-1.4.1.xml @@ -1,5 +1,7 @@ - + @@ -11,7 +13,7 @@ + tableName="limits"/> @@ -21,7 +23,7 @@ + tableName="limits"/> + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd"> Add column to criterion table to store the relationship with cost category - + @@ -16,20 +16,20 @@ + onDelete="SET NULL"/> Add new column automatic_budget_enabled with default value FALSE to configuration table - + + defaultValueBoolean="FALSE"/> + columnDataType="BOOLEAN"/> @@ -38,11 +38,11 @@ configuration table. - + + referencedTableName="type_of_work_hours" referencedColumnNames="id"/>