add missing keys delete dropped key

added several missing keys to app_config
deleted one key that was removed from the app at some point
This commit is contained in:
objecttothis
2017-08-24 23:33:25 +04:00
committed by GitHub
parent c715bca5cd
commit 8e8713d1b0

View File

@@ -308,10 +308,20 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
('gcaptcha_secret_key', ''),
('gcaptcha_site_key', '');
-- add Barcode formats
-- add Barcode formats and other missing keys
INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
('barcode_formats', '[]');
('barcode_formats', '[]'),
('barcode_font', 'Arial'),
('barcode_font_size', '10'),
('barcode_height', '50'),
('barcode_quality', '100'),
('barcode_type', 'Code39'),
('barcode_width', '250'),
('cash_decimals', '2'),
('cash_rounding_code', '0'),
('client_id', ''),
('receiving_calculate_average_price', '0');
-- replace old tokens in ospos_app_config
@@ -351,6 +361,8 @@ DROP TABLE `ospos_sales_suspended_payments`, `ospos_sales_suspended_items_taxes`
-- General fixing to realign upgraded database to clean database structure
--
DELETE FROM `ospos_app_config` WHERE `key` = 'print_after_sale';
ALTER TABLE ospos_giftcards ADD record_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP;
ALTER TABLE ospos_giftcards MODIFY value decimal(15,2) NOT NULL;
ALTER TABLE ospos_items MODIFY cost_price decimal(15,2) NOT NULL;