Skip to content
Snippets Groups Projects
Commit fc10dcb8 authored by Jared Hancock's avatar Jared Hancock
Browse files

upgrade: Fix conversion of field hints

parent 2f4f9c16
Branches
Tags
No related merge requests found
...@@ -32,7 +32,7 @@ SET @s = (SELECT IF( ...@@ -32,7 +32,7 @@ SET @s = (SELECT IF(
AND column_name = 'views' AND column_name = 'views'
) > 0, ) > 0,
"SELECT 1", "SELECT 1",
"ALTER TABLE `%TABLE_PREFIX%faq` DROP `views`, DROP `score`;" "ALTER TABLE `%TABLE_PREFIX%faq` DROP `views`, DROP `score`"
)); ));
PREPARE stmt FROM @s; PREPARE stmt FROM @s;
EXECUTE stmt; EXECUTE stmt;
......
...@@ -6,6 +6,9 @@ class InstructionsPorter extends MigrationTask { ...@@ -6,6 +6,9 @@ class InstructionsPorter extends MigrationTask {
function run($max_time) { function run($max_time) {
foreach (DynamicForm::objects() as $F) { foreach (DynamicForm::objects() as $F) {
$F->instructions = Format::htmlchars($F->get('instructions')); $F->instructions = Format::htmlchars($F->get('instructions'));
$F->save();
}
foreach (DynamicFormField::objects() as $F){
$F->hint = Format::htmlchars($F->get('hint')); $F->hint = Format::htmlchars($F->get('hint'));
$F->save(); $F->save();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment