TASKPM/navalplanner-business/src/main/resources/db.changelog-1.1.xml
Cristina Alvarino f39394b955 Incorporate new fields to the user
FEA: ItEr75S07UserSettings
2011-06-30 16:54:12 +02:00

64 lines
3.4 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-2.0.xsd">
<changeSet id="add-new-column-enabled-autocomplete-login" author="smontes">
<comment>Add new column enabled_autocomplete_login with default value TRUE to configuration table</comment>
<addColumn tableName="configuration">
<column name="enabled_autocomplete_login" type="BOOLEAN" />
</addColumn>
<addDefaultValue tableName="configuration" columnName="enabled_autocomplete_login"
defaultValueBoolean="TRUE" />
<addNotNullConstraint tableName="configuration"
columnName="enabled_autocomplete_login"
defaultNullValue="TRUE"
columnDataType="BOOLEAN" />
</changeSet>
<changeSet id="add-application-language" author="calvarinop">
<comment>Add new column to store the language of application for this user</comment>
<addColumn tableName="user_table">
<column name="application_language" type="INTEGER" defaultValue="0"/>
</addColumn>
</changeSet>
<changeSet id="move-columns-from-configuration-table" author="calvarinop">
<comment>Move columns from configuration table to user table</comment>
<addColumn tableName="user_table">
<column name="expand_company_planning_view_charts" type="BOOLEAN" />
</addColumn>
<addDefaultValue tableName="user_table" columnName="expand_company_planning_view_charts" defaultValueBoolean="FALSE" />
<addNotNullConstraint tableName="user_table" columnName="expand_company_planning_view_charts" defaultNullValue="FALSE" columnDataType="BOOLEAN" />
<addColumn tableName="user_table">
<column name="expand_order_planning_view_charts" type="BOOLEAN" />
</addColumn>
<addDefaultValue tableName="user_table" columnName="expand_order_planning_view_charts" defaultValueBoolean="TRUE" />
<addNotNullConstraint tableName="user_table" columnName="expand_order_planning_view_charts" defaultNullValue="TRUE" columnDataType="BOOLEAN" />
<addColumn tableName="user_table">
<column name="expand_resource_load_view_charts" type="BOOLEAN" />
</addColumn>
<addDefaultValue tableName="user_table" columnName="expand_resource_load_view_charts" defaultValueBoolean="TRUE" />
<addNotNullConstraint tableName="user_table" columnName="expand_resource_load_view_charts" defaultNullValue="TRUE" columnDataType="BOOLEAN" />
<dropColumn tableName="configuration" columnName="expand_company_planning_view_charts"/>
<dropColumn tableName="configuration" columnName="expand_order_planning_view_charts"/>
<dropColumn tableName="configuration" columnName="expand_resource_load_view_charts"/>
</changeSet>
<changeSet id="add-new-fields" author="calvarinop">
<comment>Add new column to store the first and last name for this user</comment>
<addColumn tableName="user_table">
<column name="first_name" type="VARCHAR(255)"/>
</addColumn>
<addColumn tableName="user_table">
<column name="last_name" type="VARCHAR(255)"/>
</addColumn>
</changeSet>
</databaseChangeLog>