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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user