Changes in db scheme: gl_trans.type_no optimized to int, changed lock_stock.reorder_l...
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 19 Feb 2015 21:40:57 +0000 (22:40 +0100)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 28 Feb 2015 17:04:10 +0000 (18:04 +0100)
sql/alter2.4.sql
sql/en_US-demo.sql
sql/en_US-new.sql

index 1ab1effbab77e4d810eb4a389bc33c94ebd8d93f..b250e04af3783cc251be31cb7dff72af6c0b9861 100644 (file)
@@ -139,3 +139,6 @@ ALTER TABLE `0_tag_associations` ENGINE=InnoDB;
 ALTER TABLE `0_useronline` ENGINE=InnoDB;
 ALTER TABLE `0_users` ENGINE=InnoDB;
 ALTER TABLE `0_workcentres` ENGINE=InnoDB;
+
+ALTER TABLE `0_gl_trans` CHANGE `type_no` `type_no` int(11) NOT NULL default '0';
+ALTER TABLE `0_loc_stock` CHANGE `reorder_level` `reorder_level` double NOT NULL default '0';
index e5250f5a983c419161b293d6fb8aa160e84a12a6..7e23a8ed26df5728626bb1b6e0c9c9d0c7db1610 100644 (file)
@@ -833,7 +833,7 @@ DROP TABLE IF EXISTS `0_gl_trans`;
 CREATE TABLE IF NOT EXISTS `0_gl_trans` (
   `counter` int(11) NOT NULL auto_increment,
   `type` smallint(6) NOT NULL default '0',
-  `type_no` bigint(16) NOT NULL default '1',
+  `type_no` `type_no` int(11) NOT NULL default '0',
   `tran_date` date NOT NULL default '0000-00-00',
   `account` varchar(15) NOT NULL default '',
   `memo_` tinytext NOT NULL,
@@ -1144,7 +1144,7 @@ DROP TABLE IF EXISTS `0_loc_stock`;
 CREATE TABLE IF NOT EXISTS `0_loc_stock` (
   `loc_code` char(5) NOT NULL default '',
   `stock_id` char(20) NOT NULL default '',
-  `reorder_level` bigint(20) NOT NULL default '0',
+  `reorder_level` double NOT NULL default '0',
   PRIMARY KEY  (`loc_code`,`stock_id`),
   KEY `stock_id` (`stock_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
index 341cb1e45277f24627239a952e9a8e037445b1cd..3012d7576af16246ad684000573af6f232f15525 100644 (file)
@@ -771,7 +771,7 @@ DROP TABLE IF EXISTS `0_gl_trans`;
 CREATE TABLE IF NOT EXISTS `0_gl_trans` (
   `counter` int(11) NOT NULL auto_increment,
   `type` smallint(6) NOT NULL default '0',
-  `type_no` bigint(16) NOT NULL default '1',
+  `type_no` int(11) NOT NULL default '0',
   `tran_date` date NOT NULL default '0000-00-00',
   `account` varchar(15) NOT NULL default '',
   `memo_` tinytext NOT NULL,
@@ -990,7 +990,7 @@ DROP TABLE IF EXISTS `0_loc_stock`;
 CREATE TABLE IF NOT EXISTS `0_loc_stock` (
   `loc_code` char(5) NOT NULL default '',
   `stock_id` char(20) NOT NULL default '',
-  `reorder_level` bigint(20) NOT NULL default '0',
+  `reorder_level` double NOT NULL default '0',
   PRIMARY KEY  (`loc_code`,`stock_id`),
   KEY `stock_id` (`stock_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;