X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sql%2Falter2.1.sql;h=529f2d10bbb69620c446734b2f5afa481aa0df3d;hb=4301c9cda0f510cc52335408380b368e51c2a663;hp=8ae7a66c409305b32b7c0fba482af067208ce47c;hpb=37da0ea920fdff712ccef4e1324aa822e981c8fc;p=fa-stable.git diff --git a/sql/alter2.1.sql b/sql/alter2.1.sql index 8ae7a66c..529f2d10 100644 --- a/sql/alter2.1.sql +++ b/sql/alter2.1.sql @@ -1,5 +1,59 @@ +ALTER TABLE `0_users` ADD `query_size` TINYINT(1) DEFAULT '10'; + +DROP TABLE IF EXISTS `0_sales_pos`; + +CREATE TABLE `0_sales_pos` ( + `id` smallint(6) NOT NULL auto_increment, + `pos_name` varchar(30) NOT NULL, + `cash_sale` tinyint(1) NOT NULL, + `credit_sale` tinyint(1) NOT NULL, + `pos_location` varchar(5) NOT NULL, + `pos_account` varchar(11) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY(`pos_name`) +) ENGINE=MyISAM AUTO_INCREMENT=3; + +INSERT INTO `0_sales_pos` VALUES ('1', 'Default', '1', '1', 'DEF', '1705'); +INSERT INTO `0_sales_pos` VALUES ('2', 'Cash sale', '1', '0', 'CWA', '1705'); + +ALTER TABLE `0_users` ADD `pos` SMALLINT(6) DEFAULT '1'; + +DROP TABLE IF EXISTS `0_quick_entries`; + +CREATE TABLE `0_quick_entries` ( + `id` smallint(6) NOT NULL auto_increment, + `description` varchar(60) NOT NULL, + `deposit` tinyint(1) NOT NULL default '0', + `bank_only` tinyint(1) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `description` (`description`) +) ENGINE=MyISAM AUTO_INCREMENT=1; + +INSERT INTO `0_quick_entries` VALUES ('1', 'Maintenance', '0', '1'); +INSERT INTO `0_quick_entries` VALUES ('2', 'Phone', '0', '1'); +INSERT INTO `0_quick_entries` VALUES ('3', 'Cash Sales', '1', '1'); + +DROP TABLE IF EXISTS `0_quick_entry_lines`; + +CREATE TABLE `0_quick_entry_lines` ( + `id` smallint(6) NOT NULL auto_increment, + `qid` smallint(6) NOT NULL, + `account` varchar(11) NOT NULL, + `tax_acc` tinyint(1) NOT NULL default '0', + `pct` tinyint(1) NOT NULL default '0', + `amount` double default NULL default '0', + `dimension_id` int(11) NOT NULL default '0', + `dimension2_id` int(11) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `qid` (`qid`) +) ENGINE=MyISAM AUTO_INCREMENT=1; + +INSERT INTO `0_quick_entry_lines` VALUES ('1', '1', '6600', '1', '0', 0, '0', '0'); +INSERT INTO `0_quick_entry_lines` VALUES ('2', '2', '6730', '1', '0', 0, '0', '0'); +INSERT INTO `0_quick_entry_lines` VALUES ('3', '3', '3000', '1', '0', 0, '0', '0'); ALTER TABLE `0_users` ADD `print_profile` VARCHAR(30) DEFAULT '' AFTER `show_hints` ; +ALTER TABLE `0_users` ADD `rep_popup` TINYINT(1) DEFAULT '1' AFTER `print_profile` ; DROP TABLE IF EXISTS `0_print_profiles`; CREATE TABLE `0_print_profiles` (