From: Janusz Dobrowolski Date: Wed, 21 Oct 2009 11:06:14 +0000 (+0000) Subject: Upgrade script from 2.2beta to 2.2RC/final. X-Git-Tag: v2.4.2~19^2~1114 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=dab46164b519d9730cac11ca5e7fa0af7b763e6c;p=fa-stable.git Upgrade script from 2.2beta to 2.2RC/final. --- diff --git a/sql/alter2.2rc.sql b/sql/alter2.2rc.sql new file mode 100644 index 00000000..12dbb097 --- /dev/null +++ b/sql/alter2.2rc.sql @@ -0,0 +1,16 @@ +# Patch for upgrade from 2.2beta to 2.2RC/final + +ALTER TABLE `0_tag_associations` DROP PRIMARY KEY; +ALTER TABLE `0_tag_associations` DROP COLUMN `id`; +ALTER TABLE `0_tag_associations` ADD UNIQUE KEY (`type`,`name`); + +DROP TABLE IF EXISTS `0_useronline` ; + +CREATE TABLE `0_useronline` ( + `id` int(11) NOT NULL AUTO_INCREMENT , + `timestamp` int(15) NOT NULL default '0', + `ip` varchar(40) NOT NULL default '', + `file` varchar(100) NOT NULL default '', + PRIMARY KEY `id` (`id`) , + KEY (`timestamp`) +) TYPE=MYISAM AUTO_INCREMENT=1;