Commit dde456b6 authored by zhangsen's avatar zhangsen

巡检模块表结构修改,维护liquibase

parent 0c7f85da
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
<!-- <include file="security-table-map.xml" relativeToChangelogFile="true"/>--> <!-- <include file="security-table-map.xml" relativeToChangelogFile="true"/>-->
<include file="patrol-3.0.0.xml" relativeToChangelogFile="true"/> <include file="patrol-3.0.0.xml" relativeToChangelogFile="true"/>
<include file="patrol-3.0.1.xml" relativeToChangelogFile="true"/> <include file="patrol-3.0.1.xml" relativeToChangelogFile="true"/>
<include file="patrol-3.6.0.xml" relativeToChangelogFile="true"/>
<include file="patrol-sql-task.xml" relativeToChangelogFile="true"/> <include file="patrol-sql-task.xml" relativeToChangelogFile="true"/>
</databaseChangeLog> </databaseChangeLog>
\ No newline at end of file
<?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.4.xsd">
<changeSet author="zs" id="202209181125-1">
<preConditions onFail="MARK_RAN">
<not>
<columnExists tableName="p_input_item" columnName="equipment_type"/>
</not>
</preConditions>
<comment>p_input_item表加字段</comment>
<sql>
ALTER TABLE `p_input_item`
ADD COLUMN `equipment_type` varchar(255) NULL DEFAULT NULL COMMENT '消防装备类型',
ADD COLUMN `facilities_type` varchar(255) NULL DEFAULT NULL COMMENT '消防设施类型',
ADD COLUMN `key_parts_type` varchar(255) NULL DEFAULT NULL COMMENT '重点部位类型',
ADD COLUMN `custom_type` varchar(255) NULL DEFAULT NULL COMMENT '自定义类型',
ADD COLUMN `biz_org_code` varchar(255) NULL DEFAULT NULL COMMENT '单位code',
ADD COLUMN `biz_org_name` varchar(255) NULL DEFAULT NULL COMMENT '单位名称';
</sql>
</changeSet>
<changeSet author="zs" id="202209181200-2">
<preConditions onFail="MARK_RAN">
<not>
<columnExists tableName="p_msg" columnName="biz_user_id"/>
</not>
</preConditions>
<comment>p_msg表加字段</comment>
<sql>
ALTER TABLE `p_msg`
ADD COLUMN `biz_user_id` varchar(255) NULL DEFAULT NULL COMMENT '',
ADD COLUMN `biz_org_code` varchar(255) NULL DEFAULT NULL COMMENT '单位code',
ADD COLUMN `biz_org_name` varchar(255) NULL DEFAULT NULL COMMENT '单位名称';
</sql>
</changeSet>
<changeSet author="zs" id="202209181200-3">
<preConditions onFail="MARK_RAN">
<not>
<columnExists tableName="p_plan" columnName="biz_org_code"/>
</not>
</preConditions>
<comment>p_plan表加字段</comment>
<sql>
ALTER TABLE `p_plan`
ADD COLUMN `biz_org_code` varchar(255) NULL DEFAULT NULL COMMENT '单位code',
ADD COLUMN `biz_org_name` varchar(255) NULL DEFAULT NULL COMMENT '单位名称';
</sql>
</changeSet>
<changeSet author="zs" id="202209181200-4">
<preConditions onFail="MARK_RAN">
<not>
<columnExists tableName="p_point" columnName="charge_person_name"/>
</not>
</preConditions>
<comment>p_point表加字段</comment>
<sql>
ALTER TABLE `p_point`
ADD COLUMN `charge_person_name` varchar(255) NULL DEFAULT NULL COMMENT '机场人员名称',
ADD COLUMN `biz_org_code` varchar(255) NULL DEFAULT NULL COMMENT '单位code',
ADD COLUMN `biz_org_name` varchar(255) NULL DEFAULT NULL COMMENT '单位名称';
</sql>
</changeSet>
<changeSet author="zs" id="202209181200-5">
<preConditions onFail="MARK_RAN">
<not>
<columnExists tableName="p_route" columnName="boss_name"/>
</not>
</preConditions>
<comment>p_route表加字段</comment>
<sql>
ALTER TABLE `p_route`
ADD COLUMN `boss_name` varchar(255) NULL DEFAULT NULL COMMENT '负责人名称',
ADD COLUMN `dept_name` varchar(255) NULL DEFAULT NULL COMMENT '责任部门名称',
ADD COLUMN `biz_org_code` varchar(255) NULL DEFAULT NULL COMMENT '所属单位code',
ADD COLUMN `biz_org_name` varchar(255) NULL DEFAULT NULL COMMENT '所属单位名称';
</sql>
</changeSet>
<changeSet author="zs" id="202209181200-6">
<preConditions onFail="MARK_RAN">
<not>
<indexExists tableName="p_check" indexName="idx_is_ok" />
</not>
</preConditions>
<sql>
ALTER TABLE `p_check`
ADD INDEX `idx_is_ok` (`is_ok`) USING BTREE;
</sql>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment