Fix (MySQL): Update for MariaDB v10.3 to match ERPNext installation on Oracle VPS.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -3,7 +3,7 @@
|
||||
|
||||
|
||||
|
||||
# Drop dependencies
|
||||
-- Drop dependencies
|
||||
DROP TABLE IF EXISTS tmp_Shop_Calc_User;
|
||||
DROP TABLE IF EXISTS tmp_Product_Calc_User;
|
||||
DROP TABLE IF EXISTS tmp_Product_p_Shop_User_Eval;
|
||||
@@ -55,7 +55,7 @@ DROP TABLE IF EXISTS tmp_Shop_Customer_Sale_Order;
|
||||
DROP TABLE IF EXISTS tmp_Get_Variation_From_Csv_Variations;
|
||||
|
||||
|
||||
# Delete old tables
|
||||
-- Delete old tables
|
||||
DROP TABLE IF EXISTS Split_Temp;
|
||||
DROP TABLE IF EXISTS Split_Key_Value_Pair_Csv_Temp;
|
||||
DROP TABLE IF EXISTS Split_Key_Value_Pair_Temp;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Product Change Sets
|
||||
-- Product Change Sets
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Split Staging
|
||||
-- Split Staging
|
||||
-- USE partsltd_prod;
|
||||
-- DROP TABLE IF EXISTS Split_Temp;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# User Change Sets
|
||||
-- User Change Sets
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Split Key Value Pair CSV Staging
|
||||
-- Split Key Value Pair CSV Staging
|
||||
-- USE partsltd_prod;
|
||||
-- DROP TABLE IF EXISTS Split_Temp;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Sales And Purchasing Change Sets
|
||||
-- Sales And Purchasing Change Sets
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Access Levels
|
||||
-- Access Levels
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Access Level Audits
|
||||
-- Access Level Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Error Message Type
|
||||
-- Error Message Type
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# File Types
|
||||
-- File Types
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# File Type Audit
|
||||
-- File Type Audit
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Generic / shared properties
|
||||
-- Generic / shared properties
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Shop General Audits
|
||||
-- Shop General Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Image Types
|
||||
-- Image Types
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Image Type Audits
|
||||
-- Image Type Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Regions
|
||||
-- Regions
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_NAME, ' already exists.') AS msg_warning FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Shop_Region';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Region Audits
|
||||
-- Region Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Region Temp
|
||||
-- Region Temp
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Region Branchs
|
||||
-- Region Branchs
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Region Audits
|
||||
-- Region Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Region Branch Temp
|
||||
-- Region Branch Temp
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Addresses
|
||||
-- Addresses
|
||||
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_NAME, ' already exists.') AS msg_warning FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Shop_Address';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Plant
|
||||
-- Plant
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_NAME, ' already exists.') AS msg_warning FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Shop_Plant';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Address Audits
|
||||
-- Address Audits
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_NAME, ' already exists.') AS msg_warning FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Shop_Address_Audit';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Plant Audits
|
||||
-- Plant Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Plant Temp
|
||||
-- Plant Temp
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Storage Location
|
||||
-- Storage Location
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Storage Location Audits
|
||||
-- Storage Location Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Storage Location Temp
|
||||
-- Storage Location Temp
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Storage Location Branch
|
||||
-- Storage Location Branch
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Storage Location Branch Audits
|
||||
-- Storage Location Branch Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Storage Location Branch Temp
|
||||
-- Storage Location Branch Temp
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Currencies
|
||||
-- Currencies
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Currency Audits
|
||||
-- Currency Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Currency Temp
|
||||
-- Currency Temp
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Taxes and Surcharges
|
||||
-- Taxes and Surcharges
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Tax Or Surcharge Audits
|
||||
-- Tax Or Surcharge Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Taxes and Surcharges Temp
|
||||
-- Taxes and Surcharges Temp
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Unit of Measurement
|
||||
-- Unit of Measurement
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Unit of Measurement Audits
|
||||
-- Unit of Measurement Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Unit of Measurement Conversion
|
||||
-- Unit of Measurement Conversion
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Unit of Measurement Conversion Audits
|
||||
-- Unit of Measurement Conversion Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Categories
|
||||
-- Categories
|
||||
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_NAME, ' already exists.') AS msg_warning FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Shop_Product_Category';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Category Audits
|
||||
-- Category Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Categories Temp
|
||||
-- Categories Temp
|
||||
|
||||
-- DROP TABLE Shop_Product_Category_Temp;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Products
|
||||
-- Products
|
||||
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ CREATE TABLE IF NOT EXISTS Shop_Product (
|
||||
/*
|
||||
price_GBP_full FLOAT,
|
||||
price_GBP_min FLOAT,
|
||||
# ratio_discount_overall FLOAT NOT NULL DEFAULT 0,
|
||||
-- ratio_discount_overall FLOAT NOT NULL DEFAULT 0,
|
||||
CONSTRAINT FK_Shop_Product_id_category
|
||||
FOREIGN KEY (id_category)
|
||||
REFERENCES Shop_Product_Category(id_category)
|
||||
@@ -35,8 +35,8 @@ CREATE TABLE IF NOT EXISTS Shop_Product (
|
||||
CONSTRAINT FK_Shop_Product_id_access_level_required
|
||||
FOREIGN KEY (id_access_level_required)
|
||||
REFERENCES Shop_Access_Level(id_access_level),
|
||||
# id_stripe_product VARCHAR(100),
|
||||
# id_stripe_price VARCHAR(100) NOT NULL,
|
||||
-- id_stripe_product VARCHAR(100),
|
||||
-- id_stripe_price VARCHAR(100) NOT NULL,
|
||||
active BIT NOT NULL DEFAULT 1,
|
||||
display_order INT NOT NULL,
|
||||
created_on DATETIME NOT NULL,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Products
|
||||
-- Products
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Products Temp
|
||||
-- Products Temp
|
||||
|
||||
-- DROP TABLE IF EXISTS Shop_Product_Temp;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Product Permutation
|
||||
-- Product Permutation
|
||||
|
||||
-- DROP TABLE partsltd_prod.Shop_Product_Permutation;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Product Permutation Audits
|
||||
-- Product Permutation Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Product Permutation Temp
|
||||
-- Product Permutation Temp
|
||||
|
||||
-- DROP TABLE IF EXISTS Shop_Product_Permutation_Temp;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Variation Types
|
||||
-- Variation Types
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Variation Type Audits
|
||||
-- Variation Type Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Variation Types Temp
|
||||
-- Variation Types Temp
|
||||
|
||||
-- DROP TABLE partsltd_prod.Shop_Variation_Type_Temp;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Variations
|
||||
-- Variations
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Variation Audits
|
||||
-- Variation Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Variations Temp
|
||||
-- Variations Temp
|
||||
|
||||
-- DROP TABLE partsltd_prod.Shop_Variation_Temp;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Product Permutation Variation Link
|
||||
-- Product Permutation Variation Link
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Product Permutation Variation Link Audits
|
||||
-- Product Permutation Variation Link Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Product Permutation Variation Link
|
||||
-- Product Permutation Variation Link
|
||||
|
||||
-- DROP TABLE IF EXISTS Shop_Product_Permutation_Variation_Link_Temp;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Product Price
|
||||
-- Product Price
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Product Price Audits
|
||||
-- Product Price Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Product Price Temp
|
||||
-- Product Price Temp
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Product Permutation Images
|
||||
-- Product Permutation Images
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Product Image Audits
|
||||
-- Product Image Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Delivery Options
|
||||
-- Delivery Options
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Delivery Option Audits
|
||||
-- Delivery Option Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Delivery Option
|
||||
-- Delivery Option
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Delivery Option Audits
|
||||
-- Delivery Option Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Discounts
|
||||
-- Discounts
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Discount Audits
|
||||
-- Discount Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Discount Region Currency Link
|
||||
-- Discount Region Currency Link
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Discount Region Currency Link Audits
|
||||
-- Discount Region Currency Link Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Permission Groups
|
||||
-- Permission Groups
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Permission Group Audits
|
||||
-- Permission Group Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Permissions
|
||||
-- Permissions
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Permission Audits
|
||||
-- Permission Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Roles
|
||||
-- Roles
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Role Audits
|
||||
-- Role Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Role Permission link
|
||||
-- Role Permission link
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Role Permission link Audits
|
||||
-- Role Permission link Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Users
|
||||
-- Users
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# User Audits
|
||||
-- User Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Users Temp
|
||||
-- Users Temp
|
||||
|
||||
-- DROP TABLE IF EXISTS Shop_User_Temp;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# User Role link
|
||||
-- User Role link
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# User Role Link Audits
|
||||
-- User Role Link Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# User Addresses
|
||||
-- User Addresses
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_NAME, ' already exists.') AS msg_warning FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Shop_User_Address';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Address Audits
|
||||
-- Address Audits
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_NAME, ' already exists.') AS msg_warning FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Shop_User_Address_Audit';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# User Basket (Product Link)
|
||||
-- User Basket (Product Link)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Product Basket Audits
|
||||
-- Product Basket Audits
|
||||
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_NAME, ' already exists.') AS msg_warning FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Shop_User_Basket_Audit';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# User Order Types
|
||||
-- User Order Types
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Order Type Audits
|
||||
-- Order Type Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Supplier
|
||||
-- Supplier
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_NAME, ' already exists.') AS msg_warning FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Shop_Supplier';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Supplier Audits
|
||||
-- Supplier Audits
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Supplier Staging
|
||||
-- Supplier Staging
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_NAME, ' already exists.') AS msg_warning FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Shop_Supplier_Temp';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Supplier Addresses
|
||||
-- Supplier Addresses
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_NAME, ' already exists.') AS msg_warning FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Shop_Supplier_Address';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Supplier Address Audits
|
||||
-- Supplier Address Audits
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_NAME, ' already exists.') AS msg_warning FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Shop_Supplier_Address_Audit';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Supplier Addresses Staging
|
||||
-- Supplier Addresses Staging
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_NAME, ' already exists.') AS msg_warning FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Shop_Supplier_Address_Temp';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
# Supplier Purchase Order
|
||||
-- Supplier Purchase Order
|
||||
|
||||
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user