Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
dde456b6
Commit
dde456b6
authored
Sep 18, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
巡检模块表结构修改,维护liquibase
parent
0c7f85da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
101 additions
and
0 deletions
+101
-0
changelog-master.xml
...trol/src/main/resources/db/changelog/changelog-master.xml
+2
-0
patrol-3.6.0.xml
...m-patrol/src/main/resources/db/changelog/patrol-3.6.0.xml
+99
-0
No files found.
amos-boot-system-patrol/src/main/resources/db/changelog/changelog-master.xml
View file @
dde456b6
...
...
@@ -10,6 +10,7 @@
<!-- <include file="security-table-map.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.6.0.xml"
relativeToChangelogFile=
"true"
/>
<include
file=
"patrol-sql-task.xml"
relativeToChangelogFile=
"true"
/>
</databaseChangeLog>
\ No newline at end of file
amos-boot-system-patrol/src/main/resources/db/changelog/patrol-3.6.0.xml
0 → 100644
View file @
dde456b6
<?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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment