Added ENGINE=MyISAM to the create table statements for custom list fields

git-svn-id: svn://192.168.202.10@3914 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2025-03-07 16:11:55 +00:00
parent b31dd40189
commit 188f27b671
2 changed files with 11 additions and 10 deletions
@@ -5303,7 +5303,7 @@ entered_by VARCHAR(20) DEFAULT NULL,
last_modified_by VARCHAR(20) DEFAULT NULL,
PRIMARY KEY (vtl_id),
UNIQUE KEY vicidial_timeoff_log_agent_month_key (user,timeoff_month,timeoff_type)
);
) ENGINE=MyISAM;
CREATE TABLE recording_log_stereo (
recording_id INT(10) UNSIGNED PRIMARY KEY NOT NULL,
@@ -1,7 +1,7 @@
<?php
# admin_lists_custom.php
#
# Copyright (C) 2022 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2025 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# this screen manages the custom lists fields in ViciDial
#
@@ -58,10 +58,11 @@
# 210311-2338 - Added BUTTON field type and 2FA
# 220217-2004 - Added input variable filtering
# 220221-0910 - Added allow_web_debug system setting
# 250307-1057 - Added ENGINE=MyISAM to the create table statements
#
$admin_version = '2.14-49';
$build = '220221-0910';
$admin_version = '2.14-50';
$build = '250307-1057';
require("dbconnect_mysqli.php");
require("functions.php");
@@ -2053,7 +2054,7 @@ function add_field_function($DB,$link,$linkCUSTOM,$ip,$user,$table_exists,$field
}
if ($table_exists < 1)
{$field_sql .= ");";}
{$field_sql .= ") ENGINE=MyISAM;";}
else
{$field_sql .= ";";}
@@ -2064,7 +2065,7 @@ function add_field_function($DB,$link,$linkCUSTOM,$ip,$user,$table_exists,$field
if ($DB) {echo "Non-DB $field_type field type, $field_label\n";}
if ($table_exists < 1)
{$field_sql = "CREATE TABLE custom_$list_id (lead_id INT(9) UNSIGNED PRIMARY KEY NOT NULL);";}
{$field_sql = "CREATE TABLE custom_$list_id (lead_id INT(9) UNSIGNED PRIMARY KEY NOT NULL) ENGINE=MyISAM;";}
else
{$SQLexecuted++;}
}