mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-03-22 08:51:32 -04:00
26 lines
859 B
SQL
26 lines
859 B
SQL
-- alter quantity fields to be all decimal
|
|
|
|
ALTER TABLE `ospos_items`
|
|
ADD COLUMN `stock_type` TINYINT(2) NOT NULL DEFAULT 0,
|
|
ADD COLUMN `item_type` TINYINT(2) NOT NULL DEFAULT 0;
|
|
|
|
ALTER TABLE `ospos_item_kits`
|
|
ADD COLUMN `item_id` INT(10) NOT NULL DEFAULT 0,
|
|
ADD COLUMN `kit_discount_percent` DECIMAL(15,2) NOT NULL DEFAULT 0.00,
|
|
ADD COLUMN `price_option` TINYINT(2) NOT NULL DEFAULT 0,
|
|
ADD COLUMN `print_option` TINYINT(2) NOT NULL DEFAULT 0;
|
|
|
|
|
|
ALTER TABLE `ospos_item_kit_items`
|
|
ADD COLUMN `kit_sequence` INT(3) NOT NULL DEFAULT 0;
|
|
|
|
ALTER TABLE `ospos_sales_items`
|
|
ADD COLUMN `print_option` TINYINT(2) NOT NULL DEFAULT 0;
|
|
|
|
ALTER TABLE `ospos_sales_suspended_items`
|
|
ADD COLUMN `print_option` TINYINT(2) NOT NULL DEFAULT 0;
|
|
|
|
-- alter pic_id field, to rather contain a file name
|
|
|
|
ALTER TABLE `ospos_items` CHANGE `pic_id` `pic_filename` VARCHAR(255);
|