<?xml version="1.1" encoding="UTF-8" standalone="no"?> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd"> <changeSet id="1.5-alter-table-inz_crm_customer-category" author="zhangwenlei"> <preConditions onFail="MARK_RAN"> <not> <tableExists tableName="inz_crm_customer_category" /> </not> </preConditions> <createTable tableName="inz_crm_customer_category"> <column name="id" type="BINARY(16)"> <constraints nullable="false" primaryKeyName="PRIMARY" primaryKey="true"/> </column> <column name="recver" type="INT"/> <column name="valid_time" type="datetime(6)"/> <column name="invalid_time" type="datetime(6)"/> <column name="name" type="VARCHAR(60)"/> <column name="title" type="VARCHAR(60)"/> <column name="short_name" type="VARCHAR(60)"/> <column name="memo" type="VARCHAR(255)"/> <column name="parent_id" type="BINARY(16)"/> <column name="level" type="INT"/> <column name="start_flag" type="BIT(1)"/> <column name="sort_field" type="INT"/> <column name="create_time" type="datetime(6)"/> <column name="create_user" type="BINARY(16)"/> <column name="create_unit" type="BINARY(16)"/> <column name="modify_time" type="datetime(6)"/> <column name="modify_user" type="BINARY(16)"/> <column name="path" type="VARCHAR(500)"/> </createTable> </changeSet> <changeSet id="1.5-alter-table-inz_crm_customer-add-column-category_id" author="zhangwenlei"> <preConditions onFail="MARK_RAN"> <not> <columnExists tableName="inz_crm_customer" columnName="category_id" /> <columnExists tableName="inz_crm_customer" columnName="head_location" /> <columnExists tableName="inz_crm_customer" columnName="branch" /> </not> </preConditions> <addColumn tableName="inz_crm_customer"> <column name="category_id" type="BINARY(16)"></column> <column name="head_location" type="VARCHAR(50)"/> <column name="branch" type="VARCHAR(1000)"/> </addColumn> </changeSet> <changeSet id="create-table-inz_basis_team_operation_team" author="zhangwei"> <preConditions onFail="MARK_RAN"> <not> <tableExists tableName="inz_basis_team_operation_team" /> </not> </preConditions> <createTable tableName="inz_basis_team_operation_team"> <column name="id" type="BINARY(16)"> <constraints nullable="false" primaryKeyName="PRIMARY" primaryKey="true"/> </column> <column name="name" type="VARCHAR(50)"/> <column name="title" type="VARCHAR(50)"/> <column name="project" type="VARCHAR(200)"/> <column name="parent_id" type="BINARY(16)"/> </createTable> <rollback> <dropTable tableName="inz_basis_team_operation_team"/> </rollback> </changeSet> <changeSet id="create-table-inz_basis_team_operation_team_member" author="zhangwei"> <preConditions onFail="MARK_RAN"> <not> <tableExists tableName="inz_basis_team_operation_team_member" /> </not> </preConditions> <createTable tableName="inz_basis_team_operation_team_member"> <column name="id" type="BINARY(16)"> <constraints nullable="false" primaryKeyName="PRIMARY" primaryKey="true"/> </column> <column name="member_id" type="BINARY(16)"> <constraints nullable="false" foreignKeyName="FKca4xxoe2w1gcs6x25mh58ffwd" references="bcp_user(id)"/> </column> <column name="name" type="VARCHAR(50)"/> <column name="title" type="VARCHAR(50)"/> <column name="manager" type="BIT(1)"/> </createTable> <rollback> <dropTable tableName="inz_basis_team_operation_team_member"/> </rollback> </changeSet> <changeSet author="xlinyao (generated)" id="1578406161265-258"> <preConditions onFail="MARK_RAN"> <not> <tableExists tableName="inz_crm_company_info" /> </not> </preConditions> <createTable tableName="inz_crm_company_info"> <column name="id" type="BINARY(16)"> <constraints nullable="false"/> </column> <column name="version" type="INT"> <constraints nullable="false"/> </column> <column name="create_time" type="datetime(6)"/> <column name="creator" type="BINARY(16)"/> <column name="modify_time" type="datetime(6)"/> <column name="modifier" type="BINARY(16)"/> <column name="org_id" type="BINARY(16)"/> <column name="bill_state" type="VARCHAR(100)"/> <column name="bill_code" type="VARCHAR(200)"/> <column name="biz_process_id" type="BINARY(16)"/> <column name="pic_id" type="BINARY(16)"/> <column name="discard" type="BIT(1)"/> <column name="del" type="BIT(1)"/> <column name="approve_state" type="INT"/> <column name="customer" type="BINARY(16)"/> <column name="url" type="VARCHAR(200)"/> <column name="password" type="VARCHAR(20)"/> <column name="locked" type="BIT(1)"/> <column name="name" type="VARCHAR(500)"/> <column name="esdate" type="datetime(6)"/> <column name="frdb" type="VARCHAR(100)"/> <column name="phone" type="VARCHAR(100)"/> <column name="standing" type="BINARY(16)"/> <column name="scope" type="VARCHAR(500)"/> <column name="main_business" type="VARCHAR(500)"/> <column name="business_description" type="VARCHAR(20)"/> <column name="regcap" type="DOUBLE"/> <column name="detail_address" type="VARCHAR(100)"/> <column name="staff_number" type="INT"/> <column name="project_investment" type="DOUBLE"/> <column name="estimate_value" type="DOUBLE"/> <column name="project_background" type="VARCHAR(500)"/> <column name="product_introduction" type="VARCHAR(500)"/> <column name="technology_achievement" type="VARCHAR(500)"/> <column name="product_feature" type="VARCHAR(500)"/> <column name="product_advantage" type="VARCHAR(500)"/> <column name="product_other_infos" type="VARCHAR(500)"/> <column name="developer_level" type="VARCHAR(500)"/> <column name="technology_ratio" type="VARCHAR(500)"/> <column name="degree_ratio" type="VARCHAR(500)"/> <column name="cooperation" type="VARCHAR(500)"/> <column name="developed_money" type="DOUBLE"/> <column name="future_plan" type="VARCHAR(500)"/> <column name="industry_history" type="VARCHAR(500)"/> <column name="market_scope" type="VARCHAR(500)"/> <column name="competitor" type="VARCHAR(500)"/> <column name="sale_forecast" type="VARCHAR(500)"/> <column name="target_customer" type="VARCHAR(500)"/> <column name="sale_channel" type="VARCHAR(500)"/> <column name="waste_description" type="VARCHAR(500)"/> <column name="protect_measure" type="VARCHAR(500)"/> </createTable> </changeSet> <changeSet author="xlinyao (generated)" id="1578406161265-259"> <preConditions onFail="MARK_RAN"> <not> <tableExists tableName="inz_crm_company_info_financial_situation" /> </not> </preConditions> <createTable tableName="inz_crm_company_info_financial_situation"> <column name="id" type="BINARY(16)"> <constraints nullable="false"/> </column> <column name="ordinal" type="INT"/> <column name="year" type="INT"/> <column name="business_income" type="DOUBLE"/> <column name="business_cost" type="DOUBLE"/> <column name="developed_money" type="DOUBLE"/> <column name="business_profit" type="DOUBLE"/> <column name="net_profit" type="DOUBLE"/> <column name="property_return_rate" type="DOUBLE"/> <column name="master_id" type="BINARY(16)"/> </createTable> </changeSet> <changeSet author="xlinyao (generated)" id="1578406161265-260"> <preConditions onFail="MARK_RAN"> <not> <tableExists tableName="inz_crm_company_info_intellectual_property" /> </not> </preConditions> <createTable tableName="inz_crm_company_info_intellectual_property"> <column name="id" type="BINARY(16)"> <constraints nullable="false"/> </column> <column name="ordinal" type="INT"/> <column name="type" type="VARCHAR(50)"/> <column name="quantity" type="INT"/> <column name="description" type="VARCHAR(500)"/> <column name="master_id" type="BINARY(16)"/> </createTable> </changeSet> <changeSet author="xlinyao (generated)" id="1578406161265-261"> <preConditions onFail="MARK_RAN"> <not> <tableExists tableName="inz_crm_company_info_manager" /> </not> </preConditions> <createTable tableName="inz_crm_company_info_manager"> <column name="id" type="BINARY(16)"> <constraints nullable="false"/> </column> <column name="ordinal" type="INT"/> <column name="name" type="VARCHAR(100)"/> <column name="industry_age" type="DOUBLE"/> <column name="education_background" type="VARCHAR(500)"/> <column name="experience" type="VARCHAR(500)"/> <column name="achievement" type="VARCHAR(500)"/> <column name="master_id" type="BINARY(16)"/> </createTable> </changeSet> <changeSet author="xlinyao (generated)" id="1578406161265-262"> <preConditions onFail="MARK_RAN"> <not> <tableExists tableName="inz_crm_company_info_shareholder" /> </not> </preConditions> <createTable tableName="inz_crm_company_info_shareholder"> <column name="id" type="BINARY(16)"> <constraints nullable="false"/> </column> <column name="ordinal" type="INT"/> <column name="name" type="VARCHAR(100)"/> <column name="ratio" type="DOUBLE"/> <column name="master_id" type="BINARY(16)"/> </createTable> </changeSet> </databaseChangeLog>