2010-11-24 17:00:07 +01:00
<?xml version="1.0" encoding="utf-8"?>
2016-05-13 17:01:29 +03:00
<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">
2010-11-24 17:00:07 +01:00
2010-12-10 11:24:59 +01:00
<changeSet id= "resize-precision-in-planning_data" author= "dpino" >
2010-12-10 10:33:45 +01:00
<comment > Resize precision for 'progress_by_duration' and 'progress_by_num_hours' fields</comment>
2010-12-03 12:09:22 +01:00
<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>
2010-12-10 19:51:09 +01:00
<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>
2010-12-17 09:13:36 +01:00
<update tableName= "configuration" >
<column name= "company_logo_url" value= "" />
</update>
2010-12-10 19:51:09 +01:00
</changeSet>
2010-12-07 17:39:18 +01:00
<changeSet id= "add scheduling mode" author= "ogonzalez" >
2011-10-28 08:17:54 +02:00
<comment > column for org.libreplan.business.orders.entities.Order.schedulingMode</comment>
2010-12-07 17:39:18 +01:00
<addColumn tableName= "order_table" >
<column name= "scheduling_mode" type= "INTEGER" />
</addColumn>
2010-12-17 09:13:36 +01:00
<update tableName= "order_table" >
2010-12-17 10:38:12 +01:00
<column name= "scheduling_mode" value= "0" />
2010-12-17 09:13:36 +01:00
</update>
2010-12-07 17:39:18 +01:00
</changeSet>
2010-12-12 00:19:13 +01:00
<changeSet id= "rename start_constraint_type in task and task milestone" author= "ogonzalez" >
2011-10-28 08:17:54 +02:00
<comment > Caused by renaming org.libreplan.business.planner.entities.TaskPositionConstraint.startConstraintType</comment>
2010-12-15 16:54:39 +01:00
<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" />
2010-12-17 09:13:36 +01:00
</changeSet>
2010-12-13 23:40:45 +01:00
<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>
2010-12-17 09:13:36 +01:00
<update tableName= "configuration" >
<column name= "scenarios_visible" valueBoolean= "FALSE" />
</update>
2010-12-12 00:19:13 +01:00
</changeSet>
2011-01-05 14:54:36 +01:00
<changeSet id= "change-types-start-finish-date-criterion-satisfaction" author= "ogonzalez" >
2011-01-05 13:11:46 +01:00
<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>
2011-05-07 22:29:48 +02:00
<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>
2010-11-24 17:00:07 +01:00
</databaseChangeLog>