// Add stock defaut quantities and a default warehouse

This commit is contained in:
mDeflotte
2011-10-14 07:55:45 +00:00
parent 5d839d97f0
commit 85937793ec
2 changed files with 42 additions and 1 deletions
+2 -1
View File
@@ -2003,13 +2003,14 @@ CREATE TABLE `PREFIX_warehouse_shop` (
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
CREATE TABLE `PREFIX_stock_available` (
`id_stock_available` INT(11) UNSIGNED NOT NULL,
`id_product` INT(11) UNSIGNED NOT NULL,
`id_product_attribute` INT(11) UNSIGNED NOT NULL,
`id_shop` INT(11) UNSIGNED NOT NULL,
`quantity` INT(10) NOT NULL DEFAULT '0',
`depends_on_stock` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
`out_of_stock` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id_product`, `id_product_attribute`, `id_shop`),
PRIMARY KEY (`id_stock_available`),
KEY `id_shop` (`id_shop`),
KEY `id_product` (`id_product`),
KEY `id_product_attribute` (`id_product_attribute`)