From 4503c60f336539d47c6716ca8e87d5f81cc4d08a Mon Sep 17 00:00:00 2001 From: Remigijus Kiminas Date: Tue, 18 Jun 2024 02:05:14 -0400 Subject: [PATCH] Update version --- lhc_web/doc/CHANGELOG.txt | 13 +++++++++++++ lhc_web/doc/update_db/structure.json | 4 ++++ lhc_web/doc/update_db/update_310.sql | 1 + lhc_web/lib/core/lhcore/lhupdate.php | 4 ++-- lhc_web/modules/lhinstall/install.php | 1 + 5 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 lhc_web/doc/update_db/update_310.sql diff --git a/lhc_web/doc/CHANGELOG.txt b/lhc_web/doc/CHANGELOG.txt index 35bb7bde90..5127893b93 100644 --- a/lhc_web/doc/CHANGELOG.txt +++ b/lhc_web/doc/CHANGELOG.txt @@ -1,3 +1,16 @@ +4.40v + +1. Visitors statistic charts are now generated much faster using database implementation. +2. Iframe bot response type now supports forms. +3. If same department alias is used for multiple departments, online status check will use department sort priority. +4. Canned messages hashtag list will indicate we hit limit and not all results are rendered. +5. Page based invitations now can be combined with general ones. https://doc.livehelperchat.com/docs/proactive#how-to-setup-url-based-invitations +6. Offline form submit will use very first passed department to match online chat logic. +7. Operators will be to test notifications from their account. +8. Various other fixes. + +execute doc/update_db/update_310.sql for update + 4.39v 1. https://github.com/LiveHelperChat/electron/releases Electron app was updated to 124 chrome version. diff --git a/lhc_web/doc/update_db/structure.json b/lhc_web/doc/update_db/structure.json index 30a7379456..8c94865bbf 100644 --- a/lhc_web/doc/update_db/structure.json +++ b/lhc_web/doc/update_db/structure.json @@ -11594,6 +11594,10 @@ "new" : {"chat_id" : "ALTER TABLE `lh_chat_online_user_footprint` ADD INDEX `chat_id` (`chat_id`);"}, "old" : ["chat_id_vtime"] }, + "lh_chat_online_user" : { + "new" : {"first_visit" : "ALTER TABLE `lh_chat_online_user` ADD INDEX `first_visit` (`first_visit`);"}, + "old" : [] + }, "lh_group" : { "new" : {"disabled" : "ALTER TABLE `lh_group` ADD INDEX `disabled` (`disabled`);"}, "old" : [] diff --git a/lhc_web/doc/update_db/update_310.sql b/lhc_web/doc/update_db/update_310.sql new file mode 100644 index 0000000000..aac68ea9ea --- /dev/null +++ b/lhc_web/doc/update_db/update_310.sql @@ -0,0 +1 @@ +ALTER TABLE `lh_chat_online_user` ADD INDEX `first_visit` (`first_visit`), ALGORITHM=INPLACE, LOCK=NONE; \ No newline at end of file diff --git a/lhc_web/lib/core/lhcore/lhupdate.php b/lhc_web/lib/core/lhcore/lhupdate.php index 7bb9f425f8..d831c0e795 100644 --- a/lhc_web/lib/core/lhcore/lhupdate.php +++ b/lhc_web/lib/core/lhcore/lhupdate.php @@ -3,8 +3,8 @@ class erLhcoreClassUpdate { - const DB_VERSION = 309; - const LHC_RELEASE = 439; + const DB_VERSION = 310; + const LHC_RELEASE = 440; public static function doTablesUpdate($definition){ $updateInformation = self::getTablesStatus($definition); diff --git a/lhc_web/modules/lhinstall/install.php b/lhc_web/modules/lhinstall/install.php index 9fc2247b3b..ac299db821 100644 --- a/lhc_web/modules/lhinstall/install.php +++ b/lhc_web/modules/lhinstall/install.php @@ -1686,6 +1686,7 @@ PRIMARY KEY (`id`), KEY `vid` (`vid`), KEY `dep_id` (`dep_id`), + KEY `first_visit` (`first_visit`), KEY `last_visit_dep_id` (`last_visit`,`dep_id`) ) ENGINE=InnoDB CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;");