X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sql%2Falter2.2.sql;h=a08cc39761a45209fda815e670f40bea18c04acf;hb=268a54dcfd08aff7113bc3afe8b784f36db2d0d4;hp=441c9ba65855d108c004c2ff33c950b8c4e4ce74;hpb=2e8e792ac86ac0242c38236fa14bf7a005b921a7;p=fa-stable.git diff --git a/sql/alter2.2.sql b/sql/alter2.2.sql index 441c9ba6..a08cc397 100644 --- a/sql/alter2.2.sql +++ b/sql/alter2.2.sql @@ -124,11 +124,21 @@ CREATE TABLE `0_tags` ( DROP TABLE IF EXISTS `0_tag_associations`; CREATE TABLE `0_tag_associations` ( - `id` int(11) NOT NULL auto_increment, `record_id` varchar(11) NOT NULL, `tag_id` int(11) NOT NULL, - PRIMARY KEY (`id`) -) TYPE=MyISAM AUTO_INCREMENT=1; + UNIQUE KEY(`record_id`,`tag_id`) +) TYPE=MyISAM; + +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; ALTER TABLE `0_suppliers` ADD COLUMN `phone2` varchar(30) NOT NULL default '' AFTER `phone`; ALTER TABLE `0_cust_branch` ADD COLUMN `phone2` varchar(30) NOT NULL default '' AFTER `phone`;