1. PostgreSQL copy of all MySQL created and tested.\n 2. Purchase Orders and Sales Orders and stock level management added to MySQL, PostgreSQL, and server and front end code.
This commit is contained in:
19
static/MySQL/deprecated/170_ish_tbl_ERP_Order.sql
Normal file
19
static/MySQL/deprecated/170_ish_tbl_ERP_Order.sql
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
# ERP Order
|
||||
|
||||
USE PARTSLTD_PROD;
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_NAME, ' already exists.') AS msg_warning FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'ERP_Order';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS ERP_Order (
|
||||
id_order INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
code VARCHAR(50),
|
||||
name VARCHAR(100),
|
||||
extension VARCHAR(50),
|
||||
created_on DATETIME,
|
||||
created_by VARCHAR(100),
|
||||
id_customer INT NOT NULL,
|
||||
CONSTRAINT FK_ERP_Order_id_customer
|
||||
FOREIGN KEY (id_customer)
|
||||
REFERENCES ERP_Customer(id_customer)
|
||||
);
|
||||
Reference in New Issue
Block a user