 ALTER TABLE `dmp2`.`resource_contexts`      DROP COLUMN `old_funder_id`;
 ALTER TABLE `dmp2`.`users`                  DROP COLUMN `old_user_id`;
 
-

SELECT `q`.`id`,        `t`.`question_order`,       `q`.`text_brief`,
       `q`.`text_full`, 'text',                     'optional',
        NULL,           `t`.`funder_template_id`,   `q`.`created_at`,
       `q`.`updated_at`, NULL,                       NULL
FROM `dmp`.`questions`          AS `q`
JOIN `dmp`.`question_templates` AS `t` ON `t`.`question_id` = `q`.`id`;


JOIN `dmp`.`question_templates` AS `t` ON `t`.`question_id` = `h`.`question_id`
JOIN `dmp`.`funder_templates`   AS `f` ON `f`.`id`          = `t`.`funder_template_id`
WHERE `h`.`institution_id` IS NULL
AND LENGTH(dmp2.fnStripTags(`h`.`help_text`)) > 50
GROUP BY `f`.`funder_id` ASC, `h`.`help_text` ASC;

INSERT INTO `dmp2`.`resources` (
