Skip to content

Commit

Permalink
Now it'll delete the API remains from the config table in the databas…
Browse files Browse the repository at this point in the history
…e on upgrade.
  • Loading branch information
kmark committed Jun 18, 2010
1 parent 64865c3 commit caa71a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/sql/upgrade.sql
Expand Up @@ -20,6 +20,7 @@ CREATE TABLE IF NOT EXISTS `%PRE%users_bak` ( `id` mediumint(9) NOT NULL auto_in
CREATE TABLE IF NOT EXISTS `%PRE%user_packs_bak` (`id` mediumint(9) NOT NULL auto_increment, `userid` varchar(5) NOT NULL, `username` varchar(50) NOT NULL, `domain` varchar(50) NOT NULL, `pid` varchar(5) NOT NULL, `signup` varchar(20) NOT NULL, `status` varchar(1) NOT NULL, `additional` text NOT NULL, PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `%PRE%logs` (`id` mediumint(9) NOT NULL auto_increment, `uid` varchar(5) NOT NULL, `loguser` varchar(50) NOT NULL, `logtime` varchar(20) NOT NULL, `message` text NOT NULL, PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
DELETE FROM `%PRE%acpnav` WHERE `id` = 17;
DELETE FROM `%PRE%config` WHERE `%PRE%config`.`name` = 'api-key';
UPDATE `%PRE%templates` SET `description` = 'This is the email a client gets when they first go though the order form and complete it. This email should contain all they''re details.<br /><br />Template Variables:<br />%USER% - Client Username<br />%PASS% - Client Password<br />%EMAIL% - Client Email<br />%DOMAIN% - The clients package url<br />%PACKAGE% - The package the client signed up for' WHERE `%PRE%templates`.`id` =3;
UPDATE `%PRE%templates` SET `description` = 'This is the email a client gets when they first go though the order form and complete it but are awaiting the admin. This email should contain all they''re details.<br /><br />Template Variables:<br />%USER% - Client Username<br />%PASS% - Client Password<br />%EMAIL% - Client Email<br />%DOMAIN% - The clients package url<br />%PACKAGE% - The package the client signed up for' WHERE `%PRE%templates`.`id` =7;
ALTER TABLE `%PRE%packages` CHANGE `name` `name` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
Expand Down

0 comments on commit caa71a4

Please sign in to comment.