X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sql%2Falter2.2.sql;h=a08cc39761a45209fda815e670f40bea18c04acf;hb=268a54dcfd08aff7113bc3afe8b784f36db2d0d4;hp=486b1f50d758bb91d747662262a3231ad302aff5;hpb=22a3c4f6476f3925627d1a4c96d6ac3e515381f6;p=fa-stable.git diff --git a/sql/alter2.2.sql b/sql/alter2.2.sql index 486b1f50..a08cc397 100644 --- a/sql/alter2.2.sql +++ b/sql/alter2.2.sql @@ -105,4 +105,44 @@ ALTER TABLE `0_sales_orders` ADD COLUMN `reference` varchar(100) NOT NULL DEFAUL ALTER TABLE `0_sales_orders` DROP PRIMARY KEY; ALTER TABLE `0_sales_orders` ADD PRIMARY KEY ( `trans_type` , `order_no` ); UPDATE `0_sales_orders` SET `reference`=`order_no` WHERE 1; -INSERT INTO `0_sys_types` (`type_id`, `type_no`, `next_reference`) VALUES (32, 0, '1'); \ No newline at end of file +INSERT INTO `0_sys_types` (`type_id`, `type_no`, `next_reference`) VALUES (32, 0, '1'); + +ALTER TABLE `0_bank_accounts` ADD COLUMN `dflt_curr_act` TINYINT(1) NOT NULL default '0' AFTER `bank_curr_code`; + +DROP TABLE IF EXISTS `0_tags`; + +CREATE TABLE `0_tags` ( + `id` int(11) NOT NULL auto_increment, + `type` smallint(6) NOT NULL, + `name` varchar(30) NOT NULL, + `description` varchar(60) default NULL, + `inactive` tinyint(1) NOT NULL default '0', + PRIMARY KEY (`id`), + UNIQUE KEY(`type`,`name`) +) TYPE=MyISAM AUTO_INCREMENT=1; + +DROP TABLE IF EXISTS `0_tag_associations`; + +CREATE TABLE `0_tag_associations` ( + `record_id` varchar(11) NOT NULL, + `tag_id` int(11) NOT NULL, + 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`; +ALTER TABLE `0_shippers` ADD COLUMN `phone2` varchar(30) NOT NULL default '' AFTER `phone`; +ALTER TABLE `0_locations` ADD COLUMN `phone2` varchar(30) NOT NULL default '' AFTER `phone`; +ALTER TABLE `0_debtors_master` ADD COLUMN `notes` tinytext NULL default '' AFTER `credit_limit`; +ALTER TABLE `0_cust_branch` ADD COLUMN `notes` tinytext NULL default '' AFTER `group_no`;