Server IP : 213.176.29.180  /  Your IP : 18.116.80.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/resources/api/../sql/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/webtaragh/public_html/whmcs/resources/api/../sql/upgrade7100alpha1.sql
-- Modify the datatype of the namespace_value column of tbllog_register
ALTER table `tbllog_register` modify `namespace_value` mediumtext COLLATE utf8_unicode_ci NOT NULL;

-- Add new field to tblemailmarketer for created_at
set @query = if ((select count(*) from information_schema.columns where table_schema=database() and table_name='tblemailmarketer' and column_name='created_at') = 0, 'alter table `tblemailmarketer` add `created_at` timestamp NOT NULL DEFAULT \'0000-00-00 00:00:00\' AFTER `marketing`', 'DO 0');
prepare statement from @query;
execute statement;
deallocate prepare statement;

-- Add new field to tblemailmarketer for updated_at
set @query = if ((select count(*) from information_schema.columns where table_schema=database() and table_name='tblemailmarketer' and column_name='updated_at') = 0, 'alter table `tblemailmarketer` add `updated_at` timestamp NOT NULL DEFAULT \'0000-00-00 00:00:00\' AFTER `created_at`', 'DO 0');
prepare statement from @query;
execute statement;
deallocate prepare statement;

-- add email_preferences to tblclients
set @query = if ((select count(*) from information_schema.columns where table_schema=database() and table_name='tblclients' and column_name='email_preferences') = 0, 'alter table `tblclients` add `email_preferences` TEXT COLLATE utf8_unicode_ci DEFAULT NULL AFTER `email_verified`', 'DO 0');
prepare statement from @query;
execute statement;
deallocate prepare statement;