ToutPratique 1d1a2def5f push prod
2016-05-17 15:54:37 +02:00

4 lines
1.5 KiB
SQL

ALTER TABLE `PREFIX_otpr_tpl` ADD `SHOP_ID` TINYINT UNSIGNED NOT NULL DEFAULT '1' AFTER `TPL_ID`;
CREATE TABLE IF NOT EXISTS `PREFIX_otpr_order_discount` (`DISC_ID` INT UNSIGNED NOT NULL auto_increment, `SHOP_ID` TINYINT UNSIGNED NOT NULL DEFAULT '1', `DISC_ID_ORDER` INT UNSIGNED NOT NULL, `DISC_ID_ORDER_DETAIL` INT UNSIGNED NOT NULL, `DISC_TAX_EXCL` DECIMAL(17,6) NOT NULL DEFAULT '0.00', `DISC_TAX_INCL` DECIMAL(17,6) NOT NULL DEFAULT '0.00', `DISC_TAX_AMOUNT` DECIMAL(17,6) NOT NULL DEFAULT '0.00', PRIMARY KEY (`DISC_ID`), INDEX `X_BTR_ORDER` (`DISC_ID_ORDER`), INDEX `X_BTR_ORDER_DETAIL` (`DISC_ID_ORDER_DETAIL`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `PREFIX_otpr_order_wrapping` (`WRA_ID` INT UNSIGNED NOT NULL auto_increment, `SHOP_ID` TINYINT UNSIGNED NOT NULL DEFAULT '1', `WRA_ID_ORDER` INT UNSIGNED NOT NULL, `WRA_TAX_EXCL` DECIMAL(17,6) NOT NULL DEFAULT '0.00', `WRA_TAX_INCL` DECIMAL(17,6) NOT NULL DEFAULT '0.00', `WRA_TAX_AMOUNT` DECIMAL(17,6) NOT NULL DEFAULT '0.00', PRIMARY KEY (`WRA_ID`), INDEX `X_BTR_ORDER` (`WRA_ID_ORDER`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `PREFIX_otpr_wholesale_price` (`WHP_ID` INT UNSIGNED NOT NULL auto_increment, `SHOP_ID` TINYINT UNSIGNED NOT NULL DEFAULT '1', `WHP_ID_ORDER` INT UNSIGNED NOT NULL, `WHP_ID_ORDER_DETAIL` INT UNSIGNED NOT NULL, `WHP_PRICE` DECIMAL(17,6) NOT NULL DEFAULT '0.00', PRIMARY KEY (`WHP_ID`), INDEX `X_BTR_ORDER` (`WHP_ID_ORDER`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;