Feat: Apply for Founding Partner Program page hookup fixed and hooked up to rest of app through Home page.
This commit is contained in:
@@ -1,194 +1,6 @@
|
||||
|
||||
USE demo;
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_SCHEMA, '.', TABLE_NAME, ' already exists.') AS msg_warning
|
||||
FROM INFORMATION_SCHEMA.TABLES
|
||||
WHERE
|
||||
TABLE_SCHEMA = 'demo'
|
||||
AND TABLE_NAME = 'PH_Apply_Founding_Partner_Form'
|
||||
;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS demo.PH_Apply_Founding_Partner_Form (
|
||||
id_apply_founding_partner_form INT NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
, name_contact VARCHAR(255) NOT NULL
|
||||
, email VARCHAR(255) NOT NULL
|
||||
, phone_number VARCHAR(255) NOT NULL
|
||||
, name_company VARCHAR(255) NOT NULL
|
||||
, website VARCHAR(1000) NOT NULL
|
||||
, dog_count INT NOT NULL
|
||||
, id_years_of_experience INT NOT NULL
|
||||
, ids_speciality VARCHAR(255) NOT NULL
|
||||
, ids_existing_system VARCHAR(255) NOT NULL
|
||||
, id_existing_challenges INT NOT NULL
|
||||
, id_existing_time_sink_weekly INT NOT NULL
|
||||
, id_commitment_frequency INT NOT NULL
|
||||
-- , most_valuable_features TEXT NOT NULL
|
||||
, notes TEXT
|
||||
, active BIT NOT NULL DEFAULT 1
|
||||
, created_on DATETIME
|
||||
, id_user_created_by INT
|
||||
, CONSTRAINT FK_PH_Apply_Founding_Partner_Form_id_user_created_by
|
||||
FOREIGN KEY (id_user_created_by)
|
||||
REFERENCES demo.DOG_User(id_user)
|
||||
, id_change_set INT
|
||||
, CONSTRAINT FK_PH_Apply_Founding_Partner_Form_id_change_set
|
||||
FOREIGN KEY (id_change_set)
|
||||
REFERENCES demo.PH_Contact_Form_Change_Set(id_change_set)
|
||||
);
|
||||
|
||||
|
||||
USE demo;
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_SCHEMA, '.', TABLE_NAME, ' already exists.') AS msg_warning
|
||||
FROM INFORMATION_SCHEMA.TABLES
|
||||
WHERE
|
||||
TABLE_SCHEMA = 'demo'
|
||||
AND TABLE_NAME = 'PH_Apply_Founding_Partner_Form_Audit'
|
||||
;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS demo.PH_Apply_Founding_Partner_Form_Audit (
|
||||
id_audit INT NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
, id_apply_founding_partner_form INT NOT NULL
|
||||
, CONSTRAINT FK_PH_AFP_Form_Audit_id_apply_founding_partner_form
|
||||
FOREIGN KEY (id_apply_founding_partner_form)
|
||||
REFERENCES demo.PH_Apply_Founding_Partner_Form(id_apply_founding_partner_form)
|
||||
, name_field VARCHAR(50) NOT NULL
|
||||
, value_prev TEXT
|
||||
, value_new TEXT
|
||||
, id_change_set INT NOT NULL
|
||||
, CONSTRAINT FK_PH_AFP_Form_Audit_id_change_set
|
||||
FOREIGN KEY (id_change_set)
|
||||
REFERENCES demo.PH_Contact_Form_Change_Set(id_change_set)
|
||||
);
|
||||
|
||||
|
||||
|
||||
USE demo;
|
||||
|
||||
SELECT CONCAT('WARNING: Table ', TABLE_SCHEMA, '.', TABLE_NAME, ' already exists.') AS msg_warning
|
||||
FROM INFORMATION_SCHEMA.TABLES
|
||||
WHERE
|
||||
TABLE_SCHEMA = 'demo'
|
||||
AND TABLE_NAME = 'PH_Apply_Founding_Partner_Form_Temp'
|
||||
;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS demo.PH_Apply_Founding_Partner_Form_Temp (
|
||||
id_temp INT NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
, id_apply_founding_partner_form INT NOT NULL
|
||||
, name_contact VARCHAR(255)
|
||||
, email VARCHAR(255)
|
||||
, phone_number VARCHAR(255)
|
||||
, name_company VARCHAR(255)
|
||||
, website VARCHAR(1000)
|
||||
, dog_count INT
|
||||
, id_years_of_experience INT
|
||||
, ids_speciality VARCHAR(255)
|
||||
, ids_existing_system VARCHAR(255)
|
||||
, id_existing_challenges INT
|
||||
, id_existing_time_sink_weekly INT
|
||||
, id_commitment_frequency INT
|
||||
, most_valuable_features TEXT
|
||||
, notes TEXT
|
||||
, active BIT
|
||||
, guid BINARY(36)
|
||||
);
|
||||
|
||||
USE demo;
|
||||
|
||||
DROP TRIGGER IF EXISTS demo.before_insert_PH_Apply_Founding_Partner_Form;
|
||||
DROP TRIGGER IF EXISTS demo.before_update_PH_Apply_Founding_Partner_Form;
|
||||
|
||||
DELIMITER //
|
||||
CREATE TRIGGER demo.before_insert_PH_Apply_Founding_Partner_Form
|
||||
BEFORE INSERT ON demo.PH_Apply_Founding_Partner_Form
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
SET NEW.created_on := IFNULL(NEW.created_on, NOW());
|
||||
END //
|
||||
DELIMITER ;
|
||||
|
||||
DELIMITER //
|
||||
CREATE TRIGGER demo.before_update_PH_Apply_Founding_Partner_Form
|
||||
BEFORE UPDATE ON demo.PH_Apply_Founding_Partner_Form
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
IF OLD.id_change_set <=> NEW.id_change_set THEN
|
||||
SIGNAL SQLSTATE '45000'
|
||||
SET MESSAGE_TEXT = 'New Change Set ID must be provided.';
|
||||
END IF;
|
||||
|
||||
INSERT INTO demo.PH_Apply_Founding_Partner_Form_Audit (
|
||||
id_Apply_Founding_Partner_Form,
|
||||
name_field,
|
||||
value_prev,
|
||||
value_new,
|
||||
id_change_set
|
||||
)
|
||||
-- Changed name_contact
|
||||
SELECT NEW.id_Apply_Founding_Partner_Form, 'name_contact', OLD.name_contact, NEW.name_contact, NEW.id_change_set
|
||||
WHERE NOT OLD.name_contact <=> NEW.name_contact
|
||||
UNION
|
||||
-- Changed email
|
||||
SELECT NEW.id_Apply_Founding_Partner_Form, 'email', OLD.email, NEW.email, NEW.id_change_set
|
||||
WHERE NOT OLD.email <=> NEW.email
|
||||
UNION
|
||||
-- Changed phone_number
|
||||
SELECT NEW.id_Apply_Founding_Partner_Form, 'phone_number', OLD.phone_number, NEW.phone_number, NEW.id_change_set
|
||||
WHERE NOT OLD.phone_number <=> NEW.phone_number
|
||||
UNION
|
||||
-- Changed name_company
|
||||
SELECT NEW.id_Apply_Founding_Partner_Form, 'name_company', OLD.name_company, NEW.name_company, NEW.id_change_set
|
||||
WHERE NOT OLD.name_company <=> NEW.name_company
|
||||
UNION
|
||||
-- Changed website
|
||||
SELECT NEW.id_Apply_Founding_Partner_Form, 'website', OLD.website, NEW.website, NEW.id_change_set
|
||||
WHERE NOT OLD.website <=> NEW.website
|
||||
UNION
|
||||
-- Changed dog_count
|
||||
SELECT NEW.id_Apply_Founding_Partner_Form, 'dog_count', CONVERT(OLD.dog_count, CHAR), CONVERT(NEW.dog_count, CHAR), NEW.id_change_set
|
||||
WHERE NOT (OLD.dog_count <=> NEW.dog_count)
|
||||
UNION
|
||||
-- Changed id_years_of_experience
|
||||
SELECT NEW.id_Apply_Founding_Partner_Form, 'id_years_of_experience', CONVERT(OLD.id_years_of_experience, CHAR), CONVERT(NEW.id_years_of_experience, CHAR), NEW.id_change_set
|
||||
WHERE NOT (OLD.id_years_of_experience <=> NEW.id_years_of_experience)
|
||||
UNION
|
||||
-- Changed ids_speciality
|
||||
SELECT NEW.id_Apply_Founding_Partner_Form, 'ids_speciality', OLD.ids_speciality, NEW.ids_speciality, NEW.id_change_set
|
||||
WHERE NOT OLD.ids_speciality <=> NEW.ids_speciality
|
||||
UNION
|
||||
-- Changed ids_existing_system
|
||||
SELECT NEW.id_Apply_Founding_Partner_Form, 'ids_existing_system', OLD.ids_existing_system, NEW.ids_existing_system, NEW.id_change_set
|
||||
WHERE NOT OLD.ids_existing_system <=> NEW.ids_existing_system
|
||||
UNION
|
||||
-- Changed id_existing_challenges
|
||||
SELECT NEW.id_Apply_Founding_Partner_Form, 'id_existing_challenges', CONVERT(OLD.id_existing_challenges, CHAR), CONVERT(NEW.id_existing_challenges, CHAR), NEW.id_change_set
|
||||
WHERE NOT (OLD.id_existing_challenges <=> NEW.id_existing_challenges)
|
||||
UNION
|
||||
-- Changed id_existing_time_sink_weekly
|
||||
SELECT NEW.id_Apply_Founding_Partner_Form, 'id_existing_time_sink_weekly', CONVERT(OLD.id_existing_time_sink_weekly, CHAR), CONVERT(NEW.id_existing_time_sink_weekly, CHAR), NEW.id_change_set
|
||||
WHERE NOT (OLD.id_existing_time_sink_weekly <=> NEW.id_existing_time_sink_weekly)
|
||||
UNION
|
||||
-- Changed id_commitment_frequency
|
||||
SELECT NEW.id_Apply_Founding_Partner_Form, 'id_commitment_frequency', CONVERT(OLD.id_commitment_frequency, CHAR), CONVERT(NEW.id_commitment_frequency, CHAR), NEW.id_change_set
|
||||
WHERE NOT (OLD.id_commitment_frequency <=> NEW.id_commitment_frequency)
|
||||
UNION
|
||||
-- Changed most_valuable_features
|
||||
SELECT NEW.id_Apply_Founding_Partner_Form, 'most_valuable_features', OLD.most_valuable_features, NEW.most_valuable_features, NEW.id_change_set
|
||||
WHERE NOT OLD.most_valuable_features <=> NEW.most_valuable_features
|
||||
UNION
|
||||
-- Changed notes
|
||||
SELECT NEW.id_Apply_Founding_Partner_Form, 'notes', OLD.notes, NEW.notes, NEW.id_change_set
|
||||
WHERE NOT OLD.notes <=> NEW.notes
|
||||
UNION
|
||||
-- Changed active
|
||||
SELECT NEW.id_Apply_Founding_Partner_Form, 'active', CONVERT(CONVERT(OLD.active, SIGNED), CHAR), CONVERT(CONVERT(NEW.active, SIGNED), CHAR), NEW.id_change_set
|
||||
WHERE NOT (OLD.active <=> NEW.active)
|
||||
;
|
||||
END //
|
||||
DELIMITER ;
|
||||
|
||||
USE demo;
|
||||
|
||||
DROP PROCEDURE IF EXISTS demo.p_ph_save_apply_founding_partner_form;
|
||||
|
||||
DELIMITER //
|
||||
@@ -267,10 +79,10 @@ BEGIN
|
||||
, id_years_of_experience INT
|
||||
, ids_speciality VARCHAR(255)
|
||||
, ids_existing_system VARCHAR(255)
|
||||
, id_existing_challenges INT
|
||||
, existing_challenges TEXT
|
||||
, id_existing_time_sink_weekly INT
|
||||
, id_commitment_frequency INT
|
||||
, most_valuable_features TEXT
|
||||
-- , most_valuable_features TEXT
|
||||
, notes TEXT
|
||||
, active BIT NOT NULL
|
||||
, name_error VARCHAR(255)
|
||||
@@ -297,10 +109,10 @@ BEGIN
|
||||
, id_years_of_experience
|
||||
, ids_speciality
|
||||
, ids_existing_system
|
||||
, id_existing_challenges
|
||||
, existing_challenges
|
||||
, id_existing_time_sink_weekly
|
||||
, id_commitment_frequency
|
||||
, most_valuable_features
|
||||
-- , most_valuable_features
|
||||
, notes
|
||||
, active
|
||||
, is_new
|
||||
@@ -316,10 +128,10 @@ BEGIN
|
||||
, IFNULL(AFPF_T.id_years_of_experience, AFPF.id_years_of_experience) AS id_years_of_experience
|
||||
, IFNULL(AFPF_T.ids_speciality, AFPF.ids_speciality) AS ids_speciality
|
||||
, IFNULL(AFPF_T.ids_existing_system, AFPF.ids_existing_system) AS ids_existing_system
|
||||
, IFNULL(AFPF_T.id_existing_challenges, AFPF.id_existing_challenges) AS id_existing_challenges
|
||||
, IFNULL(AFPF_T.existing_challenges, AFPF.existing_challenges) AS existing_challenges
|
||||
, IFNULL(AFPF_T.id_existing_time_sink_weekly, AFPF.id_existing_time_sink_weekly) AS id_existing_time_sink_weekly
|
||||
, IFNULL(AFPF_T.id_commitment_frequency, AFPF.id_commitment_frequency) AS id_commitment_frequency
|
||||
, IFNULL(AFPF_T.most_valuable_features, AFPF.most_valuable_features) AS most_valuable_features
|
||||
-- , IFNULL(AFPF_T.most_valuable_features, AFPF.most_valuable_features) AS most_valuable_features
|
||||
, IFNULL(AFPF_T.notes, AFPF.notes) AS notes
|
||||
, COALESCE(AFPF_T.active, AFPF.active, 1) AS active
|
||||
, CASE WHEN IFNULL(AFPF_T.id_apply_founding_partner_form, 0) < 1 THEN 1 ELSE 0 END AS is_new
|
||||
@@ -364,6 +176,7 @@ BEGIN
|
||||
WHERE ISNULL(t_AFPF.email)
|
||||
;
|
||||
END IF;
|
||||
/*
|
||||
-- phone_number
|
||||
IF EXISTS (SELECT * FROM tmp_Apply_Founding_Partner_Form t_AFPF WHERE ISNULL(t_AFPF.phone_number) LIMIT 1) THEN
|
||||
INSERT INTO tmp_Msg_Error (
|
||||
@@ -379,6 +192,7 @@ BEGIN
|
||||
WHERE ISNULL(t_AFPF.phone_number)
|
||||
;
|
||||
END IF;
|
||||
*/
|
||||
-- name_company
|
||||
IF EXISTS (SELECT * FROM tmp_Apply_Founding_Partner_Form t_AFPF WHERE ISNULL(t_AFPF.name_company) LIMIT 1) THEN
|
||||
INSERT INTO tmp_Msg_Error (
|
||||
@@ -394,6 +208,7 @@ BEGIN
|
||||
WHERE ISNULL(t_AFPF.name)
|
||||
;
|
||||
END IF;
|
||||
/*
|
||||
-- website
|
||||
IF EXISTS (SELECT * FROM tmp_Apply_Founding_Partner_Form t_AFPF WHERE ISNULL(t_AFPF.website) LIMIT 1) THEN
|
||||
INSERT INTO tmp_Msg_Error (
|
||||
@@ -409,6 +224,7 @@ BEGIN
|
||||
WHERE ISNULL(t_AFPF.website)
|
||||
;
|
||||
END IF;
|
||||
*/
|
||||
-- dog_count
|
||||
IF EXISTS (SELECT * FROM tmp_Apply_Founding_Partner_Form t_AFPF WHERE ISNULL(t_AFPF.dog_count) LIMIT 1) THEN
|
||||
INSERT INTO tmp_Msg_Error (
|
||||
@@ -469,8 +285,8 @@ BEGIN
|
||||
WHERE ISNULL(t_AFPF.ids_existing_system)
|
||||
;
|
||||
END IF;
|
||||
-- id_existing_challenges
|
||||
IF EXISTS (SELECT * FROM tmp_Apply_Founding_Partner_Form t_AFPF WHERE ISNULL(t_AFPF.id_existing_challenges) LIMIT 1) THEN
|
||||
-- existing_challenges
|
||||
IF EXISTS (SELECT * FROM tmp_Apply_Founding_Partner_Form t_AFPF WHERE ISNULL(t_AFPF.existing_challenges) LIMIT 1) THEN
|
||||
INSERT INTO tmp_Msg_Error (
|
||||
id_type
|
||||
, code
|
||||
@@ -479,9 +295,9 @@ BEGIN
|
||||
SELECT
|
||||
v_id_type_error_bad_data
|
||||
, v_code_type_error_bad_data
|
||||
, CONCAT('The following Apply Founding Partner Form(s) do not have a Id_existing_challenges: ', GROUP_CONCAT(t_AFPF.name_error SEPARATOR ', ')) AS msg
|
||||
, CONCAT('The following Apply Founding Partner Form(s) do not have a existing_challenges: ', GROUP_CONCAT(t_AFPF.name_error SEPARATOR ', ')) AS msg
|
||||
FROM tmp_Apply_Founding_Partner_Form t_AFPF
|
||||
WHERE ISNULL(t_AFPF.id_existing_challenges)
|
||||
WHERE ISNULL(t_AFPF.existing_challenges)
|
||||
;
|
||||
END IF;
|
||||
-- id_existing_time_sink_weekly
|
||||
@@ -514,6 +330,7 @@ BEGIN
|
||||
WHERE ISNULL(t_AFPF.id_commitment_frequency)
|
||||
;
|
||||
END IF;
|
||||
/*
|
||||
-- most_valuable_features
|
||||
IF EXISTS (SELECT * FROM tmp_Apply_Founding_Partner_Form t_AFPF WHERE ISNULL(t_AFPF.most_valuable_features) LIMIT 1) THEN
|
||||
INSERT INTO tmp_Msg_Error (
|
||||
@@ -529,6 +346,7 @@ BEGIN
|
||||
WHERE ISNULL(t_AFPF.most_valuable_features)
|
||||
;
|
||||
END IF;
|
||||
*/
|
||||
|
||||
-- Permissions
|
||||
IF a_debug = 1 THEN
|
||||
@@ -705,10 +523,10 @@ BEGIN
|
||||
, AFPF.id_years_of_experience = t_AFPF.id_years_of_experience
|
||||
, AFPF.ids_speciality = t_AFPF.ids_speciality
|
||||
, AFPF.ids_existing_system = t_AFPF.ids_existing_system
|
||||
, AFPF.id_existing_challenges = t_AFPF.id_existing_challenges
|
||||
, AFPF.existing_challenges = t_AFPF.existing_challenges
|
||||
, AFPF.id_existing_time_sink_weekly = t_AFPF.id_existing_time_sink_weekly
|
||||
, AFPF.id_commitment_frequency = t_AFPF.id_commitment_frequency
|
||||
, AFPF.most_valuable_features = t_AFPF.most_valuable_features
|
||||
-- , AFPF.most_valuable_features = t_AFPF.most_valuable_features
|
||||
, AFPF.notes = t_AFPF.notes
|
||||
, AFPF.active = t_AFPF.active
|
||||
, AFPF.id_change_set = v_id_change_set
|
||||
@@ -724,10 +542,10 @@ BEGIN
|
||||
, id_years_of_experience
|
||||
, ids_speciality
|
||||
, ids_existing_system
|
||||
, id_existing_challenges
|
||||
, existing_challenges
|
||||
, id_existing_time_sink_weekly
|
||||
, id_commitment_frequency
|
||||
, most_valuable_features
|
||||
-- , most_valuable_features
|
||||
, notes
|
||||
, active
|
||||
, id_user_created_by
|
||||
@@ -743,10 +561,10 @@ BEGIN
|
||||
, t_AFPF.id_years_of_experience
|
||||
, t_AFPF.ids_speciality
|
||||
, t_AFPF.ids_existing_system
|
||||
, t_AFPF.id_existing_challenges
|
||||
, t_AFPF.existing_challenges
|
||||
, t_AFPF.id_existing_time_sink_weekly
|
||||
, t_AFPF.id_commitment_frequency
|
||||
, t_AFPF.most_valuable_features
|
||||
-- , t_AFPF.most_valuable_features
|
||||
, t_AFPF.notes
|
||||
, t_AFPF.active
|
||||
, a_id_user
|
||||
@@ -788,12 +606,51 @@ END //
|
||||
DELIMITER ;
|
||||
|
||||
/*
|
||||
select
|
||||
*
|
||||
-- COUNT(*)
|
||||
-- delete
|
||||
from demo.PH_Apply_Founding_Partner_Form_Temp
|
||||
;
|
||||
|
||||
SELECT *
|
||||
FROM demo.PH_Apply_Founding_Partner_Form;
|
||||
SELECT *
|
||||
FROM demo.PH_Apply_Founding_Partner_Form_Temp;
|
||||
|
||||
|
||||
|
||||
INSERT INTO demo.PH_Apply_Founding_Partner_Form_Temp (
|
||||
id_apply_founding_partner_form
|
||||
,name_contact
|
||||
, email,
|
||||
phone_number
|
||||
,name_company
|
||||
,website
|
||||
,dog_count
|
||||
,id_years_of_experience
|
||||
,ids_speciality
|
||||
,ids_existing_system
|
||||
,existing_challenges
|
||||
,id_existing_time_sink_weekly
|
||||
,id_commitment_frequency
|
||||
,notes
|
||||
,active
|
||||
,guid
|
||||
)
|
||||
SELECT
|
||||
id_apply_founding_partner_form
|
||||
,name_contact
|
||||
, email,
|
||||
phone_number
|
||||
,name_company
|
||||
,website
|
||||
,dog_count
|
||||
,id_years_of_experience
|
||||
,ids_speciality
|
||||
,ids_existing_system
|
||||
,existing_challenges
|
||||
,id_existing_time_sink_weekly
|
||||
,id_commitment_frequency
|
||||
,notes
|
||||
,active
|
||||
, '782c29e0-72e6-41e2-b543-4b0454041a57'
|
||||
FROM demo.PH_Apply_Founding_Partner_Form_Temp
|
||||
WHERE guid = '782c29e0-72e6-41e2-b543-4b0454041a56';
|
||||
|
||||
|
||||
CALL demo.p_ph_save_apply_founding_partner_form (
|
||||
@@ -803,11 +660,70 @@ CALL demo.p_ph_save_apply_founding_partner_form (
|
||||
, 1
|
||||
);
|
||||
|
||||
select
|
||||
*
|
||||
-- COUNT(*)
|
||||
-- delete
|
||||
from demo.PH_Apply_Founding_Partner_Form_Temp
|
||||
;
|
||||
SELECT *
|
||||
FROM demo.PH_Apply_Founding_Partner_Form;
|
||||
SELECT *
|
||||
FROM demo.PH_Apply_Founding_Partner_Form_Temp;
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
SELECT *
|
||||
FROM demo.PH_Apply_Founding_Partner_Form;
|
||||
SELECT *
|
||||
FROM demo.PH_Apply_Founding_Partner_Form_Temp;
|
||||
|
||||
|
||||
|
||||
INSERT INTO demo.PH_Apply_Founding_Partner_Form_Temp (
|
||||
id_apply_founding_partner_form
|
||||
,name_contact
|
||||
, email,
|
||||
phone_number
|
||||
,name_company
|
||||
,website
|
||||
,dog_count
|
||||
,id_years_of_experience
|
||||
,ids_speciality
|
||||
,ids_existing_system
|
||||
,existing_challenges
|
||||
,id_existing_time_sink_weekly
|
||||
,id_commitment_frequency
|
||||
,notes
|
||||
,active
|
||||
,guid
|
||||
)
|
||||
SELECT
|
||||
id_apply_founding_partner_form
|
||||
,name_contact
|
||||
, email,
|
||||
phone_number
|
||||
,name_company
|
||||
,website
|
||||
,dog_count
|
||||
,id_years_of_experience
|
||||
,ids_speciality
|
||||
,ids_existing_system
|
||||
,existing_challenges
|
||||
,id_existing_time_sink_weekly
|
||||
,id_commitment_frequency
|
||||
,notes
|
||||
,active
|
||||
, '782c29e0-72e6-41e2-b543-4b0454041a57'
|
||||
FROM demo.PH_Apply_Founding_Partner_Form_Temp
|
||||
WHERE guid = '782c29e0-72e6-41e2-b543-4b0454041a56';
|
||||
|
||||
|
||||
CALL demo.p_ph_save_apply_founding_partner_form (
|
||||
'nipples'
|
||||
, (SELECT GUID FROM demo.PH_Apply_Founding_Partner_Form_Temp ORDER BY id_temp DESC LIMIT 1)
|
||||
, 1
|
||||
, 1
|
||||
);
|
||||
|
||||
SELECT *
|
||||
FROM demo.PH_Apply_Founding_Partner_Form;
|
||||
SELECT *
|
||||
FROM demo.PH_Apply_Founding_Partner_Form_Temp;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ CREATE TABLE IF NOT EXISTS fetchmetrics.PH_Apply_Founding_Partner_Form (
|
||||
, id_years_of_experience INT NOT NULL
|
||||
, ids_speciality VARCHAR(255) NOT NULL
|
||||
, ids_existing_system VARCHAR(255) NOT NULL
|
||||
, id_existing_challenges INT NOT NULL
|
||||
, existing_challenges TEXT NOT NULL
|
||||
, id_existing_time_sink_weekly INT NOT NULL
|
||||
, id_commitment_frequency INT NOT NULL
|
||||
-- , most_valuable_features TEXT NOT NULL
|
||||
|
||||
@@ -22,7 +22,7 @@ CREATE TABLE IF NOT EXISTS fetchmetrics.PH_Apply_Founding_Partner_Form_Temp (
|
||||
, id_years_of_experience INT
|
||||
, ids_speciality VARCHAR(255)
|
||||
, ids_existing_system VARCHAR(255)
|
||||
, id_existing_challenges INT
|
||||
, existing_challenges TEXT
|
||||
, id_existing_time_sink_weekly INT
|
||||
, id_commitment_frequency INT
|
||||
-- , most_valuable_features TEXT
|
||||
|
||||
@@ -66,9 +66,9 @@ BEGIN
|
||||
SELECT NEW.id_Apply_Founding_Partner_Form, 'ids_existing_system', OLD.ids_existing_system, NEW.ids_existing_system, NEW.id_change_set
|
||||
WHERE NOT OLD.ids_existing_system <=> NEW.ids_existing_system
|
||||
UNION
|
||||
-- Changed id_existing_challenges
|
||||
SELECT NEW.id_Apply_Founding_Partner_Form, 'id_existing_challenges', CONVERT(OLD.id_existing_challenges, CHAR), CONVERT(NEW.id_existing_challenges, CHAR), NEW.id_change_set
|
||||
WHERE NOT (OLD.id_existing_challenges <=> NEW.id_existing_challenges)
|
||||
-- Changed existing_challenges
|
||||
SELECT NEW.id_Apply_Founding_Partner_Form, 'existing_challenges', CONVERT(OLD.existing_challenges, CHAR), CONVERT(NEW.existing_challenges, CHAR), NEW.id_change_set
|
||||
WHERE NOT (OLD.existing_challenges <=> NEW.existing_challenges)
|
||||
UNION
|
||||
-- Changed id_existing_time_sink_weekly
|
||||
SELECT NEW.id_Apply_Founding_Partner_Form, 'id_existing_time_sink_weekly', CONVERT(OLD.id_existing_time_sink_weekly, CHAR), CONVERT(NEW.id_existing_time_sink_weekly, CHAR), NEW.id_change_set
|
||||
|
||||
@@ -79,7 +79,7 @@ BEGIN
|
||||
, id_years_of_experience INT
|
||||
, ids_speciality VARCHAR(255)
|
||||
, ids_existing_system VARCHAR(255)
|
||||
, id_existing_challenges INT
|
||||
, existing_challenges TEXT
|
||||
, id_existing_time_sink_weekly INT
|
||||
, id_commitment_frequency INT
|
||||
-- , most_valuable_features TEXT
|
||||
@@ -109,7 +109,7 @@ BEGIN
|
||||
, id_years_of_experience
|
||||
, ids_speciality
|
||||
, ids_existing_system
|
||||
, id_existing_challenges
|
||||
, existing_challenges
|
||||
, id_existing_time_sink_weekly
|
||||
, id_commitment_frequency
|
||||
-- , most_valuable_features
|
||||
@@ -128,7 +128,7 @@ BEGIN
|
||||
, IFNULL(AFPF_T.id_years_of_experience, AFPF.id_years_of_experience) AS id_years_of_experience
|
||||
, IFNULL(AFPF_T.ids_speciality, AFPF.ids_speciality) AS ids_speciality
|
||||
, IFNULL(AFPF_T.ids_existing_system, AFPF.ids_existing_system) AS ids_existing_system
|
||||
, IFNULL(AFPF_T.id_existing_challenges, AFPF.id_existing_challenges) AS id_existing_challenges
|
||||
, IFNULL(AFPF_T.existing_challenges, AFPF.existing_challenges) AS existing_challenges
|
||||
, IFNULL(AFPF_T.id_existing_time_sink_weekly, AFPF.id_existing_time_sink_weekly) AS id_existing_time_sink_weekly
|
||||
, IFNULL(AFPF_T.id_commitment_frequency, AFPF.id_commitment_frequency) AS id_commitment_frequency
|
||||
-- , IFNULL(AFPF_T.most_valuable_features, AFPF.most_valuable_features) AS most_valuable_features
|
||||
@@ -141,7 +141,7 @@ BEGIN
|
||||
;
|
||||
|
||||
UPDATE tmp_Apply_Founding_Partner_Form t_AFPF
|
||||
SET name_error = COALESCE(t_AFPF.email, t_AFPF.name_company, t_AFPF.name_contact, t_AFPF.message, '(No Apply Founding Partner Form)')
|
||||
SET name_error = COALESCE(t_AFPF.email, t_AFPF.name_company, t_AFPF.name_contact, t_AFPF.notes, '(No Apply Founding Partner Form)')
|
||||
;
|
||||
|
||||
-- Validation
|
||||
@@ -285,8 +285,8 @@ BEGIN
|
||||
WHERE ISNULL(t_AFPF.ids_existing_system)
|
||||
;
|
||||
END IF;
|
||||
-- id_existing_challenges
|
||||
IF EXISTS (SELECT * FROM tmp_Apply_Founding_Partner_Form t_AFPF WHERE ISNULL(t_AFPF.id_existing_challenges) LIMIT 1) THEN
|
||||
-- existing_challenges
|
||||
IF EXISTS (SELECT * FROM tmp_Apply_Founding_Partner_Form t_AFPF WHERE ISNULL(t_AFPF.existing_challenges) LIMIT 1) THEN
|
||||
INSERT INTO tmp_Msg_Error (
|
||||
id_type
|
||||
, code
|
||||
@@ -295,9 +295,9 @@ BEGIN
|
||||
SELECT
|
||||
v_id_type_error_bad_data
|
||||
, v_code_type_error_bad_data
|
||||
, CONCAT('The following Apply Founding Partner Form(s) do not have a Id_existing_challenges: ', GROUP_CONCAT(t_AFPF.name_error SEPARATOR ', ')) AS msg
|
||||
, CONCAT('The following Apply Founding Partner Form(s) do not have a existing_challenges: ', GROUP_CONCAT(t_AFPF.name_error SEPARATOR ', ')) AS msg
|
||||
FROM tmp_Apply_Founding_Partner_Form t_AFPF
|
||||
WHERE ISNULL(t_AFPF.id_existing_challenges)
|
||||
WHERE ISNULL(t_AFPF.existing_challenges)
|
||||
;
|
||||
END IF;
|
||||
-- id_existing_time_sink_weekly
|
||||
@@ -523,7 +523,7 @@ BEGIN
|
||||
, AFPF.id_years_of_experience = t_AFPF.id_years_of_experience
|
||||
, AFPF.ids_speciality = t_AFPF.ids_speciality
|
||||
, AFPF.ids_existing_system = t_AFPF.ids_existing_system
|
||||
, AFPF.id_existing_challenges = t_AFPF.id_existing_challenges
|
||||
, AFPF.existing_challenges = t_AFPF.existing_challenges
|
||||
, AFPF.id_existing_time_sink_weekly = t_AFPF.id_existing_time_sink_weekly
|
||||
, AFPF.id_commitment_frequency = t_AFPF.id_commitment_frequency
|
||||
-- , AFPF.most_valuable_features = t_AFPF.most_valuable_features
|
||||
@@ -542,7 +542,7 @@ BEGIN
|
||||
, id_years_of_experience
|
||||
, ids_speciality
|
||||
, ids_existing_system
|
||||
, id_existing_challenges
|
||||
, existing_challenges
|
||||
, id_existing_time_sink_weekly
|
||||
, id_commitment_frequency
|
||||
-- , most_valuable_features
|
||||
@@ -561,7 +561,7 @@ BEGIN
|
||||
, t_AFPF.id_years_of_experience
|
||||
, t_AFPF.ids_speciality
|
||||
, t_AFPF.ids_existing_system
|
||||
, t_AFPF.id_existing_challenges
|
||||
, t_AFPF.existing_challenges
|
||||
, t_AFPF.id_existing_time_sink_weekly
|
||||
, t_AFPF.id_commitment_frequency
|
||||
-- , t_AFPF.most_valuable_features
|
||||
@@ -606,12 +606,51 @@ END //
|
||||
DELIMITER ;
|
||||
|
||||
/*
|
||||
select
|
||||
*
|
||||
-- COUNT(*)
|
||||
-- delete
|
||||
from fetchmetrics.PH_Apply_Founding_Partner_Form_Temp
|
||||
;
|
||||
|
||||
SELECT *
|
||||
FROM demo.PH_Apply_Founding_Partner_Form;
|
||||
SELECT *
|
||||
FROM demo.PH_Apply_Founding_Partner_Form_Temp;
|
||||
|
||||
|
||||
|
||||
INSERT INTO fetchmetrics.PH_Apply_Founding_Partner_Form_Temp (
|
||||
id_apply_founding_partner_form
|
||||
,name_contact
|
||||
, email,
|
||||
phone_number
|
||||
,name_company
|
||||
,website
|
||||
,dog_count
|
||||
,id_years_of_experience
|
||||
,ids_speciality
|
||||
,ids_existing_system
|
||||
,existing_challenges
|
||||
,id_existing_time_sink_weekly
|
||||
,id_commitment_frequency
|
||||
,notes
|
||||
,active
|
||||
,guid
|
||||
)
|
||||
SELECT
|
||||
id_apply_founding_partner_form
|
||||
,name_contact
|
||||
, email,
|
||||
phone_number
|
||||
,name_company
|
||||
,website
|
||||
,dog_count
|
||||
,id_years_of_experience
|
||||
,ids_speciality
|
||||
,ids_existing_system
|
||||
,existing_challenges
|
||||
,id_existing_time_sink_weekly
|
||||
,id_commitment_frequency
|
||||
,notes
|
||||
,active
|
||||
, '782c29e0-72e6-41e2-b543-4b0454041a57'
|
||||
FROM fetchmetrics.PH_Apply_Founding_Partner_Form_Temp
|
||||
WHERE guid = '782c29e0-72e6-41e2-b543-4b0454041a56';
|
||||
|
||||
|
||||
CALL fetchmetrics.p_ph_save_apply_founding_partner_form (
|
||||
@@ -621,11 +660,11 @@ CALL fetchmetrics.p_ph_save_apply_founding_partner_form (
|
||||
, 1
|
||||
);
|
||||
|
||||
select
|
||||
*
|
||||
-- COUNT(*)
|
||||
-- delete
|
||||
from fetchmetrics.PH_Apply_Founding_Partner_Form_Temp
|
||||
;
|
||||
SELECT *
|
||||
FROM demo.PH_Apply_Founding_Partner_Form;
|
||||
SELECT *
|
||||
FROM demo.PH_Apply_Founding_Partner_Form_Temp;
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
max-width: 40vw;
|
||||
}
|
||||
|
||||
#id_speciality li,
|
||||
#id_existing_system li {
|
||||
#ids_speciality li,
|
||||
#ids_existing_system li {
|
||||
list-style: none;
|
||||
}
|
||||
/*
|
||||
@@ -27,12 +27,4 @@
|
||||
#id_existing_system li::marker {
|
||||
display: none;
|
||||
}
|
||||
*/
|
||||
|
||||
.container.row.captcha > div {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
input[type="submit"] {
|
||||
margin: 0 auto;
|
||||
}
|
||||
*/
|
||||
@@ -49,6 +49,10 @@ textarea.form-input {
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
|
||||
|
||||
.container.row.captcha > div {
|
||||
margin: 0 auto;
|
||||
}
|
||||
.container.captcha > div:first-child > label:first-child {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@@ -81,8 +85,10 @@ altcha-widget > div:first-child,
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
|
||||
input[type="submit"] {
|
||||
margin-left: 40%;
|
||||
margin: 0 auto;
|
||||
padding: 0.75rem 1.5rem;
|
||||
background: #2563eb;
|
||||
color: white;
|
||||
|
||||
@@ -127,6 +127,10 @@ textarea.form-input {
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
|
||||
|
||||
.container.row.captcha > div {
|
||||
margin: 0 auto;
|
||||
}
|
||||
.container.captcha > div:first-child > label:first-child {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@@ -159,8 +163,10 @@ altcha-widget > div:first-child,
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
|
||||
input[type="submit"] {
|
||||
margin-left: 40%;
|
||||
margin: 0 auto;
|
||||
padding: 0.75rem 1.5rem;
|
||||
background: #2563eb;
|
||||
color: white;
|
||||
@@ -235,8 +241,8 @@ input[type="submit"]:hover {
|
||||
max-width: 40vw;
|
||||
}
|
||||
|
||||
#id_speciality li,
|
||||
#id_existing_system li {
|
||||
#ids_speciality li,
|
||||
#ids_existing_system li {
|
||||
list-style: none;
|
||||
}
|
||||
/*
|
||||
@@ -246,12 +252,4 @@ input[type="submit"]:hover {
|
||||
}
|
||||
*/
|
||||
|
||||
.container.row.captcha > div {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
input[type="submit"] {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=core_apply_founding_partner.bundle.css.map*/
|
||||
File diff suppressed because one or more lines are too long
6
static/dist/css/core_contact.bundle.css
vendored
6
static/dist/css/core_contact.bundle.css
vendored
@@ -127,6 +127,10 @@ textarea.form-input {
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
|
||||
|
||||
.container.row.captcha > div {
|
||||
margin: 0 auto;
|
||||
}
|
||||
.container.captcha > div:first-child > label:first-child {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@@ -159,8 +163,10 @@ altcha-widget > div:first-child,
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
|
||||
input[type="submit"] {
|
||||
margin-left: 40%;
|
||||
margin: 0 auto;
|
||||
padding: 0.75rem 1.5rem;
|
||||
background: #2563eb;
|
||||
color: white;
|
||||
|
||||
2
static/dist/css/core_contact.bundle.css.map
vendored
2
static/dist/css/core_contact.bundle.css.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user