Server IP : 213.176.29.180  /  Your IP : 18.220.196.68
Web Server : Apache
System : Linux 213.176.29.180.hostiran.name 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
User : webtaragh ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/webtaragh/public_html/whmcs/../whmcs/resources/sql/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/webtaragh/public_html/whmcs/../whmcs/resources/sql/upgrade760alpha1.sql
-- Add the target_php_version column to tblioncube_file_log
set @query = if ((select count(*) from information_schema.columns where table_schema=database() and table_name='tblioncube_file_log' and column_name='target_php_version') = 0, 'alter table `tblioncube_file_log` add `target_php_version` CHAR(16) NOT NULL DEFAULT \'\'', 'DO 0');
prepare statement from @query;
execute statement;
deallocate prepare statement;

-- update MaxMind Configuration
UPDATE `tblfraud` SET `setting` = 'licenseKey' WHERE `setting` = 'MaxMind License Key' AND `fraud` = 'maxmind';
UPDATE `tblfraud` SET `setting` = 'riskScore' WHERE `setting` = 'MaxMind Fraud Risk Score' AND `fraud` = 'maxmind';
UPDATE `tblfraud` SET `setting` = 'ignoreAddressValidation' WHERE `setting` = 'Do Not Validate Address Information' AND `fraud` = 'maxmind';
UPDATE `tblfraud` SET `setting` = 'rejectFreeEmail' WHERE `setting` = 'Reject Free Email Service' AND `fraud` = 'maxmind';
UPDATE `tblfraud` SET `setting` = 'rejectCountryMismatch' WHERE `setting` = 'Reject Country Mismatch' AND `fraud` = 'maxmind';
UPDATE `tblfraud` SET `setting` = 'rejectAnonymousNetwork' WHERE `setting` = 'Reject Anonymous Proxy' AND `fraud` = 'maxmind';
UPDATE `tblfraud` SET `setting` = 'rejectHighRiskCountry' WHERE `setting` = 'Reject High Risk Country' AND `fraud` = 'maxmind';
DELETE FROM `tblfraud` WHERE `setting` IN ('Use New Risk Score', 'Service Type', 'Force Phone Verify Products') AND `fraud` = 'maxmind';

-- Change enum to include bbcode for editor column in tbltickets
ALTER TABLE `tbltickets` CHANGE `editor` `editor` ENUM('plain','markdown','bbcode') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'plain';