1. Fix(Authentication): User login on production. \n 2. Fix(SQL): Refactoring of Stock Items to include foreign key for Supplier Purchase Order, Manufacturing Purchase Order, and Customer Sales Order IDs.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -67,6 +67,18 @@ DROP TABLE IF EXISTS Shop_Customer_Sales_Order_Product_Link_Temp;
|
||||
DROP TABLE IF EXISTS Shop_Customer_Sales_Order_Product_Link_Audit;
|
||||
DROP TABLE IF EXISTS Shop_Customer_Sales_Order_Product_Link;
|
||||
|
||||
DROP TABLE IF EXISTS Shop_Manufacturing_Purchase_Order_Product_Link_Temp;
|
||||
DROP TABLE IF EXISTS Shop_Manufacturing_Purchase_Order_Product_Link_Audit;
|
||||
DROP TABLE IF EXISTS Shop_Manufacturing_Purchase_Order_Product_Link;
|
||||
|
||||
DROP TABLE IF EXISTS Shop_Supplier_Purchase_Order_Product_Link_Temp;
|
||||
DROP TABLE IF EXISTS Shop_Supplier_Purchase_Order_Product_Link_Audit;
|
||||
DROP TABLE IF EXISTS Shop_Supplier_Purchase_Order_Product_Link;
|
||||
|
||||
DROP TABLE IF EXISTS Shop_Stock_Item_Temp;
|
||||
DROP TABLE IF EXISTS Shop_Stock_Item_Audit;
|
||||
DROP TABLE IF EXISTS Shop_Stock_Item;
|
||||
|
||||
DROP TABLE IF EXISTS Shop_Customer_Sales_Order_Audit;
|
||||
DROP TABLE IF EXISTS Shop_Customer_Sales_Order;
|
||||
|
||||
@@ -74,18 +86,10 @@ DROP TABLE IF EXISTS Shop_Customer_Temp;
|
||||
DROP TABLE IF EXISTS Shop_Customer_Audit;
|
||||
DROP TABLE IF EXISTS Shop_Customer;
|
||||
|
||||
DROP TABLE IF EXISTS Shop_Manufacturing_Purchase_Order_Product_Link_Temp;
|
||||
DROP TABLE IF EXISTS Shop_Manufacturing_Purchase_Order_Product_Link_Audit;
|
||||
DROP TABLE IF EXISTS Shop_Manufacturing_Purchase_Order_Product_Link;
|
||||
|
||||
DROP TABLE IF EXISTS Shop_Manufacturing_Purchase_Order_Temp;
|
||||
DROP TABLE IF EXISTS Shop_Manufacturing_Purchase_Order_Audit;
|
||||
DROP TABLE IF EXISTS Shop_Manufacturing_Purchase_Order;
|
||||
|
||||
DROP TABLE IF EXISTS Shop_Supplier_Purchase_Order_Product_Link_Temp;
|
||||
DROP TABLE IF EXISTS Shop_Supplier_Purchase_Order_Product_Link_Audit;
|
||||
DROP TABLE IF EXISTS Shop_Supplier_Purchase_Order_Product_Link;
|
||||
|
||||
DROP TABLE IF EXISTS Shop_Supplier_Purchase_Order_Temp;
|
||||
DROP TABLE IF EXISTS Shop_Supplier_Purchase_Order_Audit;
|
||||
DROP TABLE IF EXISTS Shop_Supplier_Purchase_Order;
|
||||
@@ -157,10 +161,6 @@ DROP TABLE IF EXISTS Shop_Product_Price_Temp;
|
||||
DROP TABLE IF EXISTS Shop_Product_Price_Audit;
|
||||
DROP TABLE IF EXISTS Shop_Product_Price;
|
||||
|
||||
DROP TABLE IF EXISTS Shop_Stock_Item_Temp;
|
||||
DROP TABLE IF EXISTS Shop_Stock_Item_Audit;
|
||||
DROP TABLE IF EXISTS Shop_Stock_Item;
|
||||
|
||||
DROP TABLE IF EXISTS Shop_Product_Currency_Region_Link_Audit;
|
||||
DROP TABLE IF EXISTS Shop_Product_Currency_Region_Link;
|
||||
DROP TABLE IF EXISTS Shop_Product_Currency_Link_Audit;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
|
||||
# Stock Stock Item
|
||||
|
||||
-- DROP TABLE IF EXISTS Shop_Stock_Item_Audit;
|
||||
-- DROP TABLE IF EXISTS Shop_Stock_Item;
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_NAME, ' already exists.') AS msg_warning FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Shop_Stock_Item';
|
||||
@@ -11,15 +12,15 @@ CREATE TABLE IF NOT EXISTS Shop_Stock_Item (
|
||||
, CONSTRAINT FK_Shop_Stock_Item_id_permutation
|
||||
FOREIGN KEY (id_permutation)
|
||||
REFERENCES partsltd_prod.Shop_Product_Permutation(id_permutation)
|
||||
, id_supplier_purchase_order INT
|
||||
, id_supplier_purchase_order INT NULL
|
||||
, CONSTRAINT FK_Shop_Stock_Item_id_supplier_purchase_order
|
||||
FOREIGN KEY (id_supplier_purchase_order)
|
||||
REFERENCES partsltd_prod.Shop_Supplier_Purchase_Order(id_order)
|
||||
, id_manufacturing_purchase_order INT
|
||||
, id_manufacturing_purchase_order INT NULL
|
||||
, CONSTRAINT FK_Shop_Stock_Item_id_manufacturing_purchase_order
|
||||
FOREIGN KEY (id_manufacturing_purchase_order)
|
||||
REFERENCES partsltd_prod.Shop_Manufacturing_Purchase_Order(id_order)
|
||||
, id_customer_sales_order INT
|
||||
, id_customer_sales_order INT NULL
|
||||
, CONSTRAINT FK_Shop_Stock_Item_id_customer_sales_order
|
||||
FOREIGN KEY (id_customer_sales_order)
|
||||
REFERENCES partsltd_prod.Shop_Customer_Sales_Order(id_order)
|
||||
Reference in New Issue
Block a user