Skip to content

Commit 0a847af

Browse files
committed
fix(install): handle possible null while changing fields
1 parent 275c350 commit 0a847af

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

install/upgrade_to_2.13.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,16 @@ public function fixTables(): void {
168168
['ola_rule' => '0'],
169169
['ola_rule' => null]
170170
);
171+
$DB->update(
172+
$table,
173+
['tag_questions' => ''],
174+
['tag_questions' => null]
175+
);
176+
$DB->update(
177+
$table,
178+
['tag_specifics' => ''],
179+
['tag_specifics' => null]
180+
);
171181
$this->migration->changeField($table, 'validation_followup', 'validation_followup', 'bool', ['after' => 'urgency_question', 'value' => '1']);
172182
$this->migration->changeField($table, 'destination_entity', 'destination_entity', 'integer', ['after' => 'validation_followup', 'value' => '1']);
173183
$this->migration->changeField($table, 'destination_entity_value', 'destination_entity_value', $unsignedIntType, ['after' => 'destination_entity', 'default' => '1']);

0 commit comments

Comments
 (0)