Feat: Contact Form MySQL database created and hooked up to web app on form submission. \n Fix: Removal of ERP and otherwise deprecated database and server code..
This commit is contained in:
26
static/MySQL/1120_tbl_PH_Role.sql
Normal file
26
static/MySQL/1120_tbl_PH_Role.sql
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
USE partsltd_prod;
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_SCHEMA, '.', TABLE_NAME, ' already exists.') AS msg_warning
|
||||
FROM INFORMATION_SCHEMA.TABLES
|
||||
WHERE
|
||||
TABLE_SCHEMA = 'partsltd_prod'
|
||||
AND TABLE_NAME = 'PH_Role'
|
||||
;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS partsltd_prod.PH_Role (
|
||||
id_role INT NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
, code VARCHAR(50)
|
||||
, name VARCHAR(255)
|
||||
, display_order INT NOT NULL
|
||||
, active BIT NOT NULL DEFAULT 1
|
||||
, created_on DATETIME
|
||||
, id_user_created_by INT
|
||||
, CONSTRAINT FK_PH_Role_id_user_created_by
|
||||
FOREIGN KEY (id_user_created_by)
|
||||
REFERENCES partsltd_prod.PH_User(id_user)
|
||||
, id_change_set INT
|
||||
, CONSTRAINT FK_PH_Role_id_change_set
|
||||
FOREIGN KEY (id_change_set)
|
||||
REFERENCES partsltd_prod.PH_User_Change_Set(id_change_set)
|
||||
);
|
||||
Reference in New Issue
Block a user