1DROP TABLE `tblreselleraccountsetup` ;
2INSERT INTO `tblconfiguration` (`setting` ,`value` )VALUES ('SupportModule', '');
3CREATE TABLE IF NOT EXISTS `tblcontacts` (`id` INT( 1 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,`userid` INT( 1 ) NOT NULL ,`firstname` TEXT COLLATE utf8_unicode_ci NOT NULL ,`lastname` TEXT COLLATE utf8_unicode_ci NOT NULL ,`companyname` TEXT COLLATE utf8_unicode_ci NOT NULL ,`email` TEXT COLLATE utf8_unicode_ci NOT NULL ,`address1` TEXT COLLATE utf8_unicode_ci NOT NULL ,`address2` TEXT COLLATE utf8_unicode_ci NOT NULL ,`city` TEXT COLLATE utf8_unicode_ci NOT NULL ,`state` TEXT COLLATE utf8_unicode_ci NOT NULL ,`postcode` TEXT COLLATE utf8_unicode_ci NOT NULL ,`country` TEXT COLLATE utf8_unicode_ci NOT NULL ,`phonenumber` TEXT COLLATE utf8_unicode_ci NOT NULL ,`domainemails` INT( 1 ) NOT NULL ,`generalemails` INT( 1 ) NOT NULL ,`invoiceemails` INT( 1 ) NOT NULL ,`productemails` INT( 1 ) NOT NULL ,`supportemails` INT( 1 ) NOT NULL ) DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
4INSERT INTO `tblconfiguration` (`setting` ,`value` )VALUES ('AddFundsEnabled', '');
5INSERT INTO `tblconfiguration` (`setting` ,`value` )VALUES ('AddFundsMinimum', '10');
6INSERT INTO `tblconfiguration` (`setting` ,`value` )VALUES ('AddFundsMaximum', '100');
7INSERT INTO `tblconfiguration` (`setting` ,`value` )VALUES ('AddFundsMaximumBalance', '300');
8ALTER TABLE `tbldomains` ADD `type` ENUM( 'Register', 'Transfer' ) NOT NULL AFTER `orderid` ;
9UPDATE `tbldomains` INNER JOIN tblorders ON tblorders.id=tbldomains.orderid SET tbldomains.type=tblorders.domaintype;
10ALTER TABLE `tblorders` DROP `hostingid`, DROP `domainids`, DROP `addonids`, DROP `upgradeids`, DROP `domaintype`;
11ALTER TABLE `tblorders` ADD `contactid` INT( 1 ) NOT NULL AFTER `userid` ;
12ALTER TABLE `tblticketdepartments` ADD `clientsonly` TEXT NOT NULL AFTER `email` ;
13DELETE FROM tblconfiguration WHERE setting='AllowTicketsRegisteredClientsOnly';
14ALTER TABLE `tblclients` ADD `billingcid` INT( 1 ) NOT NULL AFTER `notes` ;
15INSERT INTO tblconfiguration (`setting` ,`value` )VALUES ('OrderDaysGrace', '0');
16ALTER TABLE `tblinvoices` DROP `randomstring` ;
17