From a4ce9ed25422e7fb9820a321df0b0723deb7a009 Mon Sep 17 00:00:00 2001 From: szporowolik Date: Fri, 6 Nov 2020 17:08:32 +0100 Subject: [PATCH] Update for v0.11.0 --- 01_DCS/Hooks/Perun.lua | 2 +- 03_MySQL/m1081_perun.sql | 7 +++---- README.md | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/01_DCS/Hooks/Perun.lua b/01_DCS/Hooks/Perun.lua index 932c559..8d629f4 100644 --- a/01_DCS/Hooks/Perun.lua +++ b/01_DCS/Hooks/Perun.lua @@ -22,7 +22,7 @@ Perun.MOTD_L2 = "Wymagamy obecnosci DCS SRS oraz TeamSpeak - szczegoly na forum" -- ###################### END OF SETTINGS - DO NOT MODIFY OUTSIDE THIS SECTION ###################### -- Variable init -Perun.Version = "v0.10.1" +Perun.Version = "v0.11.0" Perun.StatusData = {} Perun.SlotsData = {} Perun.MissionData = {} diff --git a/03_MySQL/m1081_perun.sql b/03_MySQL/m1081_perun.sql index c7561cc..8df9ce8 100644 --- a/03_MySQL/m1081_perun.sql +++ b/03_MySQL/m1081_perun.sql @@ -17,7 +17,7 @@ CREATE TABLE IF NOT EXISTS `pe_Config` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `pe_Config` (`pe_Config_id`, `pe_Config_payload`) VALUES -(1, 'v0.10.1'); +(1, 'v0.11.0'); DROP TABLE IF EXISTS `pe_DataMissionHashes`; CREATE TABLE IF NOT EXISTS `pe_DataMissionHashes` ( @@ -41,7 +41,6 @@ CREATE TABLE IF NOT EXISTS `pe_DataPlayers` ( UNIQUE KEY `UNIQUE_UCID` (`pe_DataPlayers_ucid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; - DROP TABLE IF EXISTS `pe_DataRaw`; CREATE TABLE IF NOT EXISTS `pe_DataRaw` ( `pe_dataraw_type` tinyint(4) NOT NULL, @@ -116,6 +115,7 @@ CREATE TABLE IF NOT EXISTS `pe_LogStats` ( `pe_LogStats_typeid` int(11) DEFAULT NULL, `pe_LogStats_masterslot` int(11) DEFAULT NULL, `pe_LogStats_seat` int(10) DEFAULT NULL, + `ps_kills_X` int(11) UNSIGNED NOT NULL DEFAULT '0', `ps_pvp` int(11) UNSIGNED NOT NULL DEFAULT '0', `ps_deaths` int(11) UNSIGNED NOT NULL DEFAULT '0', `ps_ejections` int(11) UNSIGNED NOT NULL DEFAULT '0', @@ -129,7 +129,7 @@ CREATE TABLE IF NOT EXISTS `pe_LogStats` ( `ps_kills_infantry` int(11) UNSIGNED NOT NULL DEFAULT '0', `ps_kills_ships` int(11) UNSIGNED NOT NULL DEFAULT '0', `ps_kills_fortification` int(10) UNSIGNED NOT NULL DEFAULT '0', - `ps_kills_artillery` int(10) UNSIGNED NOT NULL DEFAULT '0', + `ps_kills_artillery` int(10) NOT NULL DEFAULT '0', `ps_kills_other` int(11) UNSIGNED NOT NULL DEFAULT '0', `ps_airfield_takeoffs` int(11) UNSIGNED NOT NULL DEFAULT '0', `ps_airfield_landings` int(11) UNSIGNED NOT NULL DEFAULT '0', @@ -150,7 +150,6 @@ CREATE TABLE IF NOT EXISTS `pe_LogStats` ( KEY `pe_LogStats_mstatus` (`pe_LogStats_mstatus`), KEY `pe_LogStats_seat` (`pe_LogStats_seat`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; - DROP TRIGGER IF EXISTS `pe_LogStats_UPDATE`; DELIMITER $$ CREATE TRIGGER `pe_LogStats_UPDATE` BEFORE UPDATE ON `pe_LogStats` FOR EACH ROW BEGIN diff --git a/README.md b/README.md index 5280730..09893f1 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ DCS API does not track carrier or FARP operations natively, so there is a trick * table: pe_LogLogins - holds login to server event history * table: pe_LogStats - holds static information -![Database Scheme](https://i.imgur.com/dmJ2pIY.png "MIT") +![Database Scheme](https://i.imgur.com/zJsFxV0.png "MIT") ## Data packets - send from lua to TCP port * ```ID: 1```, contains version/diagnostic information