TASKPM/libreplan-business/src/main/resources/db.changelog-initial.xml
Vova Perebykivskyi ebe9869547 Update info about MySQL.
Update i18n dependencies (Gettext).
Resolve Spring Security logout issue.
Code refactoring.
2016-05-16 15:13:08 +03:00

66 lines
3.3 KiB
XML

<?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"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">
<changeSet id="resize-precision-in-planning_data" author="dpino">
<comment>Resize precision for 'progress_by_duration' and 'progress_by_num_hours' fields</comment>
<modifyDataType tableName="planning_data" columnName="progress_by_duration" newDataType="numeric(19,6)" />
<modifyDataType tableName="planning_data" columnName="progress_by_num_hours" newDataType="numeric(19,6)" />
</changeSet>
<changeSet id="add-company-logo-url-configuration-setting" author="ltilve">
<comment>Add new column with configuration setting</comment>
<addColumn tableName="configuration">
<column name="company_logo_url" type="varchar(255)" />
</addColumn>
<update tableName="configuration">
<column name="company_logo_url" value="" />
</update>
</changeSet>
<changeSet id="add scheduling mode" author="ogonzalez">
<comment>column for org.libreplan.business.orders.entities.Order.schedulingMode</comment>
<addColumn tableName="order_table">
<column name="scheduling_mode" type="INTEGER" />
</addColumn>
<update tableName="order_table">
<column name="scheduling_mode" value="0" />
</update>
</changeSet>
<changeSet id="rename start_constraint_type in task and task milestone" author="ogonzalez">
<comment>Caused by renaming org.libreplan.business.planner.entities.TaskPositionConstraint.startConstraintType</comment>
<renameColumn tableName="task" oldColumnName="start_constraint_type"
newColumnName="constraint_type" columnDataType="INTEGER" />
<renameColumn tableName="task_milestone"
oldColumnName="start_constraint_type"
newColumnName="constraint_type" columnDataType="INTEGER" />
</changeSet>
<changeSet id="add-scenarios-enabled-configuration-setting" author="ltilve">
<comment>Add new column with scenarios visibility flag</comment>
<addColumn tableName="configuration">
<column name="scenarios_visible" type="BOOLEAN" />
</addColumn>
<update tableName="configuration">
<column name="scenarios_visible" valueBoolean="FALSE" />
</update>
</changeSet>
<changeSet id="change-types-start-finish-date-criterion-satisfaction" author="ogonzalez">
<comment>Change types of start and finish date to date for criterion satisfaction table</comment>
<modifyDataType tableName="criterion_satisfaction" columnName="start_date" newDataType="DATE"/>
<modifyDataType tableName="criterion_satisfaction" columnName="finish_date" newDataType="DATE"/>
</changeSet>
<changeSet id="remove-stretches-with-amountWorkPercentage-equal-100" author="dpino">
<comment>Removes all stretches which amountWorkPercentage value is 100 as now these stretches will be created automatically and never stored into DB</comment>
<sql>
DELETE FROM stretches WHERE amount_work_percentage = 1.00;
</sql>
</changeSet>
</databaseChangeLog>