mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-04 23:24:16 -04:00
Fix old database upgrade scripts (#1546)
This commit is contained in:
@@ -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'),
|
||||
|
||||
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user