Fix old database upgrade scripts (#1546)

This commit is contained in:
FrancescoUK
2017-09-04 19:37:38 +01:00
parent e1743f4d9f
commit 2bc702acc8
2 changed files with 9 additions and 0 deletions

View File

@@ -4,6 +4,12 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
('barcode_second_row', 'item_code'),
('barcode_third_row', 'cost_price'),
('barcode_num_in_row', '2'),
('barcode_font', 'Arial'),
('barcode_font_size', '10'),
('barcode_height', '50'),
('barcode_quality', '100'),
('barcode_type', 'Code39'),
('barcode_width', '250'),
('company_logo', ''),
('barcode_page_width', '100'),
('barcode_page_cellspacing', '20'),

View File

@@ -105,6 +105,9 @@ ALTER TABLE `ospos_items`
ADD COLUMN `receiving_quantity` int(11) DEFAULT '1',
DROP COLUMN `quantity`;
-- add record_time column to ospos_giftcards table
ALTER TABLE ospos_giftcards ADD record_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP;
-- add foreign key to giftcards table
ALTER TABLE `ospos_giftcards`
ADD CONSTRAINT `ospos_giftcards_ibfk_1` FOREIGN KEY (`person_id`) REFERENCES `ospos_people` (`person_id`);