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