Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
982ff9b8
Commit
982ff9b8
authored
Apr 20, 2020
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.数据库脚本整理
parent
0242dcc5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
234 additions
and
7 deletions
+234
-7
changelog-master.xml
...tart/src/main/resources/db/changelog/changelog-master.xml
+4
-4
fas-1.0.1.xml
...utoSysStart/src/main/resources/db/changelog/fas-1.0.1.xml
+0
-0
fas-1.0.2.xml
...utoSysStart/src/main/resources/db/changelog/fas-1.0.2.xml
+0
-0
fas-2.0.1.xml
...utoSysStart/src/main/resources/db/changelog/fas-2.0.1.xml
+178
-0
fas-init-table.xml
...sStart/src/main/resources/db/changelog/fas-init-table.xml
+7
-2
fas-create-table.sql
...src/main/resources/db/changelog/init/fas-create-table.sql
+0
-0
fas-init-data.sql
...rt/src/main/resources/db/changelog/init/fas-init-data.sql
+44
-0
fas_create_table.sql
...src/main/resources/db/changelog/init/fas_create_table.sql
+0
-0
pom.xml
pom.xml
+1
-1
No files found.
YeeAmosFireAutoSysStart/src/main/resources/db/changelog/changelog-master.xml
View file @
982ff9b8
...
...
@@ -6,10 +6,9 @@
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd"
>
<!--初始化表结构
<include file="fas-init-table.xml" relativeToChangelogFile="true"/>-->
<include
file=
"fas-1.0.1.xml"
relativeToChangelogFile=
"true"
/>
<include
file=
"fas-1.0.2.xml"
relativeToChangelogFile=
"true"
/>
<!--初始化表结构-->
<!-- <include file="fas-init-table.xml" relativeToChangelogFile="true"/>-->
<include
file=
"fas-2.0.1.xml"
relativeToChangelogFile=
"true"
/>
<!-- 系统函数脚本 -->
<include
file=
"fas-sql-task.xml"
relativeToChangelogFile=
"true"
/>
</databaseChangeLog>
\ No newline at end of file
YeeAmosFireAutoSysStart/src/main/resources/db/changelog/fas-1.0.1.xml
deleted
100644 → 0
View file @
0242dcc5
This diff is collapsed.
Click to expand it.
YeeAmosFireAutoSysStart/src/main/resources/db/changelog/fas-1.0.2.xml
deleted
100644 → 0
View file @
0242dcc5
This diff is collapsed.
Click to expand it.
YeeAmosFireAutoSysStart/src/main/resources/db/changelog/fas-2.0.1.xml
0 → 100644
View file @
982ff9b8
<?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=
"suhuiguang"
id=
"1587349916716-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"f_risk_source"
columnName=
"ue4_location"
/>
</not>
</preConditions>
<comment>
f_risk_source add column ue4_location
</comment>
<sql>
alter table `f_risk_source` add column `ue4_location` json default null comment 'ue4位置' after `position3d`;
</sql>
</changeSet>
<changeSet
author=
"suhuiguang"
id=
"1587349916716-2"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"f_risk_source"
columnName=
"ue4_rotation"
/>
</not>
</preConditions>
<comment>
f_risk_source add column ue4_rotation
</comment>
<sql>
alter table `f_risk_source` add column `ue4_rotation` json default null comment 'ue4旋转' after `position3d`;
</sql>
</changeSet>
<changeSet
author=
"suhuiguang"
id=
"1587349916716-3"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"f_risk_source"
columnName=
"ue4_extent"
/>
</not>
</preConditions>
<comment>
f_risk_source add column ue4_extent
</comment>
<sql>
alter table `f_risk_source` add column `ue4_extent` json default null comment 'ue4缩放' after `position3d`;
</sql>
</changeSet>
<changeSet
author=
"suhuiguang"
id=
"1587351415717-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"f_equipment"
columnName=
"ue4_location"
/>
</not>
</preConditions>
<comment>
f_equipment add column ue4_location
</comment>
<sql>
alter table `f_equipment` add column `ue4_location` json default null comment 'ue4位置' after `position3d`;
</sql>
</changeSet>
<changeSet
author=
"suhuiguang"
id=
"1587351415717-2"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"f_equipment"
columnName=
"ue4_rotation"
/>
</not>
</preConditions>
<comment>
f_equipment add column ue4_rotation
</comment>
<sql>
alter table `f_equipment` add column `ue4_rotation` json default null comment 'ue4旋转' after `position3d`;
</sql>
</changeSet>
<changeSet
author=
"suhuiguang"
id=
"1587350445716-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"f_fire_car"
columnName=
"ue4_location"
/>
</not>
</preConditions>
<comment>
f_fire_car add column ue4_location
</comment>
<sql>
alter table `f_fire_car` add column `ue4_location` json default null comment 'ue4位置' after `position3d`;
</sql>
</changeSet>
<changeSet
author=
"suhuiguang"
id=
"1587350445716-2"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"f_fire_car"
columnName=
"ue4_rotation"
/>
</not>
</preConditions>
<comment>
f_fire_car add column ue4_rotation
</comment>
<sql>
alter table `f_fire_car` add column `ue4_rotation` json default null comment 'ue4旋转' after `position3d`;
</sql>
</changeSet>
<changeSet
author=
"suhuiguang"
id=
"1587350552716-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"f_fire_equipment"
columnName=
"ue4_location"
/>
</not>
</preConditions>
<comment>
f_fire_equipment add column ue4_location
</comment>
<sql>
alter table `f_fire_equipment` add column `ue4_location` json default null comment 'ue4位置' after `position3d`;
</sql>
</changeSet>
<changeSet
author=
"suhuiguang"
id=
"1587350552716-2"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"f_fire_equipment"
columnName=
"ue4_rotation"
/>
</not>
</preConditions>
<comment>
f_fire_equipment add column ue4_rotation
</comment>
<sql>
alter table `f_fire_equipment` add column `ue4_rotation` json default null comment 'ue4旋转' after `position3d`;
</sql>
</changeSet>
<changeSet
author=
"suhuiguang"
id=
"1587350593716-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"f_fire_station"
columnName=
"ue4_location"
/>
</not>
</preConditions>
<comment>
f_fire_station add column ue4_location
</comment>
<sql>
alter table `f_fire_station` add column `ue4_location` json default null comment 'ue4位置' after `position3d`;
</sql>
</changeSet>
<changeSet
author=
"suhuiguang"
id=
"1587350593716-2"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"f_fire_station"
columnName=
"ue4_rotation"
/>
</not>
</preConditions>
<comment>
f_fire_station add column ue4_rotation
</comment>
<sql>
alter table `f_fire_station` add column `ue4_rotation` json default null comment 'ue4旋转' after `position3d`;
</sql>
</changeSet>
<changeSet
author=
"suhuiguang"
id=
"1587350759717-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"f_water_resource"
columnName=
"ue4_location"
/>
</not>
</preConditions>
<comment>
f_water_resource add column ue4_location
</comment>
<sql>
alter table `f_water_resource` add column `ue4_location` json default null comment 'ue4位置' after `position3d`;
</sql>
</changeSet>
<changeSet
author=
"suhuiguang"
id=
"1587350759717-2"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"f_water_resource"
columnName=
"ue4_rotation"
/>
</not>
</preConditions>
<comment>
f_water_resource add column ue4_rotation
</comment>
<sql>
alter table `f_water_resource` add column `ue4_rotation` json default null comment 'ue4旋转' after `position3d`;
</sql>
</changeSet>
<changeSet
author=
"suhuiguang"
id=
"1587350860716-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<tableExists
tableName=
"f_safety_index_change_log"
/>
</not>
</preConditions>
<comment>
create f_safety_index_change_log
</comment>
<sql>
create table f_safety_index_change_log
(
id bigint(20) not null auto_increment comment '物理主键',
safety_index decimal(4,1) comment '安全指数',
collect_date date comment '统计日期',
org_code varchar(100) comment '机构',
remark varchar(255) comment '备注',
primary key (id)
);
alter table f_safety_index_change_log comment '安全指数日流水';
create index Index_org_code on f_safety_index_change_log
(
org_code
);
</sql>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
YeeAmosFireAutoSysStart/src/main/resources/db/changelog/fas-init-table.xml
View file @
982ff9b8
...
...
@@ -10,8 +10,12 @@
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd"
>
<!-- 插入基础表结构 -->
<changeSet
author=
"suhuiguang"
id=
"15
56423311
001-1"
>
<changeSet
author=
"suhuiguang"
id=
"15
87349724
001-1"
>
<comment>
init database
</comment>
<sqlFile
path=
"./init/fas_create_table.sql"
relativeToChangelogFile=
"true"
/>
<sqlFile
path=
"./init/fas-create-table.sql"
relativeToChangelogFile=
"true"
/>
</changeSet>
<changeSet
author=
"suhuiguang"
id=
"1587349740715-1"
>
<comment>
init data
</comment>
<sqlFile
path=
"./init/fas-init-data.sql"
relativeToChangelogFile=
"true"
/>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
YeeAmosFireAutoSysStart/src/main/resources/db/changelog/init/fas-create-table.sql
0 → 100644
View file @
982ff9b8
This diff is collapsed.
Click to expand it.
YeeAmosFireAutoSysStart/src/main/resources/db/changelog/init/fas-init-data.sql
0 → 100644
View file @
982ff9b8
SET
FOREIGN_KEY_CHECKS
=
0
;
INSERT
INTO
`f_dict`
VALUES
(
'1'
,
'火灾告警'
,
'fire_equipment_switch'
,
'0'
,
'
\0
'
,
'alarm_type_fire'
,
'0'
,
'火灾探测器告警'
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'2'
,
'电源开关'
,
'fire_equipment_switch'
,
'0'
,
'
\0
'
,
'alarm_type_power'
,
'1'
,
'电源开关'
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'3'
,
'液位'
,
'fire_equipment_analogue'
,
'0'
,
'
\0
'
,
'analogue_water_level'
,
'0'
,
'液位'
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'4'
,
'流量'
,
'fire_equipment_analogue'
,
'0'
,
'
\0
'
,
'analogue_water_flow'
,
'1'
,
'流量'
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'5'
,
'容量'
,
'fire_equipment_analogue'
,
'0'
,
'
\0
'
,
'analogue_water_capacity'
,
'2'
,
'容量'
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'6'
,
'换流变'
,
'fire_equipment_switch'
,
'0'
,
'
\0
'
,
'alarm_type_rheology'
,
'2'
,
'换流变'
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'7'
,
'故障告警'
,
'fire_equipment_switch'
,
'0'
,
'
\0
'
,
'alarm_type_trouble'
,
'2'
,
'故障告警'
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'8'
,
'消防车'
,
'plan_source_type'
,
'0'
,
'
\0
'
,
'fireCar'
,
'0'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'9'
,
'探测器'
,
'plan_source_type'
,
'0'
,
'
\0
'
,
'monitorEquipment'
,
'1'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'10'
,
'消防耗材'
,
'plan_source_type'
,
'0'
,
'
\0
'
,
'fireConsumables'
,
'2'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'11'
,
'视频监控'
,
'plan_source_type'
,
'0'
,
'
\0
'
,
'video'
,
'3'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'12'
,
'灭火器材'
,
'plan_source_type'
,
'0'
,
'
\0
'
,
'fireEquipment'
,
'4'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'13'
,
'重点装备'
,
'plan_source_type'
,
'0'
,
'
\0
'
,
'impEquipment'
,
'5'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'14'
,
'消防力量'
,
'plan_source_type'
,
'0'
,
'
\0
'
,
'fireStrength'
,
'6'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'15'
,
'消防小室'
,
'plan_source_type'
,
'0'
,
'
\0
'
,
'fireChamber'
,
'7'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'16'
,
'消防泡沫间'
,
'plan_source_type'
,
'0'
,
'
\0
'
,
'fireFoamRoom'
,
'8'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'17'
,
'消火栓'
,
'plan_source_type'
,
'0'
,
'
\0
'
,
'hydrant'
,
'9'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'18'
,
'消防水池'
,
'plan_source_type'
,
'0'
,
'
\0
'
,
'pool'
,
'10'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'19'
,
'名称'
,
'fireCar'
,
'0'
,
'
\0
'
,
'name'
,
'0'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'20'
,
'车牌号'
,
'fireCar'
,
'0'
,
'
\0
'
,
'car_num'
,
'1'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'21'
,
'发动机编号'
,
'fireCar'
,
'0'
,
'
\0
'
,
'engine_num'
,
'2'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'22'
,
'名称'
,
'monitorEquipment'
,
'0'
,
'
\0
'
,
'name'
,
'0'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'23'
,
'编号'
,
'monitorEquipment'
,
'0'
,
'
\0
'
,
'code'
,
'1'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'24'
,
'名称'
,
'fireConsumables'
,
'0'
,
'
\0
'
,
'name'
,
'0'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'25'
,
'编号'
,
'fireConsumables'
,
'0'
,
'
\0
'
,
'code'
,
'1'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'26'
,
'名称'
,
'video'
,
'0'
,
'
\0
'
,
'name'
,
'0'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'27'
,
'编号'
,
'video'
,
'0'
,
'
\0
'
,
'code'
,
'1'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'30'
,
'名称'
,
'fireEquipment'
,
'0'
,
'
\0
'
,
'name'
,
'0'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'31'
,
'编号'
,
'fireEquipment'
,
'0'
,
'
\0
'
,
'code'
,
'1'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'32'
,
'名称'
,
'impEquipment'
,
'0'
,
'
\0
'
,
'name'
,
'0'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'33'
,
'编号'
,
'impEquipment'
,
'0'
,
'
\0
'
,
'code'
,
'1'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'34'
,
'名称'
,
'fireStrength'
,
'0'
,
'
\0
'
,
'username'
,
'0'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'35'
,
'编号'
,
'fireStrength'
,
'0'
,
'
\0
'
,
'code'
,
'1'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'36'
,
'名称'
,
'fireChamber'
,
'0'
,
'
\0
'
,
'name'
,
'0'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'37'
,
'编号'
,
'fireChamber'
,
'0'
,
'
\0
'
,
'code'
,
'1'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'38'
,
'名称'
,
'fireFoamRoom'
,
'0'
,
'
\0
'
,
'name'
,
'0'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'39'
,
'编号'
,
'fireFoamRoom'
,
'0'
,
'
\0
'
,
'code'
,
'1'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'40'
,
'名称'
,
'hydrant'
,
'0'
,
'
\0
'
,
'name'
,
'0'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'41'
,
'编号'
,
'hydrant'
,
'0'
,
'
\0
'
,
'code'
,
'1'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'42'
,
'名称'
,
'pool'
,
'0'
,
'
\0
'
,
'name'
,
'0'
,
null
,
null
);
INSERT
INTO
`f_dict`
VALUES
(
'43'
,
'编号'
,
'pool'
,
'0'
,
'
\0
'
,
'code'
,
'1'
,
null
,
null
);
SET
FOREIGN_KEY_CHECKS
=
1
;
\ No newline at end of file
YeeAmosFireAutoSysStart/src/main/resources/db/changelog/init/fas_create_table.sql
deleted
100644 → 0
View file @
0242dcc5
This diff is collapsed.
Click to expand it.
pom.xml
View file @
982ff9b8
...
...
@@ -4,7 +4,7 @@
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.yeejoin.amos
</groupId>
<artifactId>
YeeAmosFireAutoSysRoot
</artifactId>
<version>
1.0
.0
</version>
<version>
2.1
.0
</version>
<packaging>
pom
</packaging>
<name>
YeeAmosFireAutoSysRoot
</name>
...
...
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