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..ba2da318d --- /dev/null +++ b/libreplan-business/src/main/resources/db.changelog-1.4.1.xml @@ -0,0 +1,35 @@ + + + + + + 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..50cb0a94c 100644 --- a/libreplan-business/src/main/resources/db.changelog-1.4.xml +++ b/libreplan-business/src/main/resources/db.changelog-1.4.xml @@ -2,12 +2,12 @@ + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd"> Add column to criterion table to store the relationship with cost category - + @@ -16,15 +16,20 @@ + onDelete="SET NULL"/> Add new column automatic_budget_enabled with default value FALSE to configuration table - + - + + @@ -33,16 +38,16 @@ configuration table. - + + referencedTableName="type_of_work_hours" referencedColumnNames="id"/> - + @@ -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 @@ +