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:
22
static/PostgreSQL/181.1_tbl_Shop_Supplier_Audit.sql
Normal file
22
static/PostgreSQL/181.1_tbl_Shop_Supplier_Audit.sql
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
-- Supplier Audits
|
||||
|
||||
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_NAME, ' already exists.') AS msg_warning FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Shop_Supplier_Audit';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS Shop_Supplier_Audit (
|
||||
id_audit INTEGER NOT NULL PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
|
||||
id_supplier INTEGER NOT NULL,
|
||||
CONSTRAINT FK_Shop_Supplier_Audit_id_supplier
|
||||
FOREIGN KEY (id_supplier)
|
||||
REFERENCES Shop_Supplier(id_supplier)
|
||||
ON UPDATE RESTRICT,
|
||||
name_field VARCHAR(50),
|
||||
value_prev VARCHAR(255),
|
||||
value_new VARCHAR(255),
|
||||
id_change_set INTEGER NOT NULL,
|
||||
CONSTRAINT FK_Shop_Supplier_Audit_id_change_set
|
||||
FOREIGN KEY (id_change_set)
|
||||
REFERENCES Shop_User_Change_Set(id_change_set)
|
||||
);
|
||||
Reference in New Issue
Block a user