@@ -69,7 +69,7 @@ public function fixTables() {
6969 $ this ->migration ->migrationOneTable ($ table );
7070
7171 $ table = 'glpi_plugin_formcreator_forms ' ;
72- $ this ->migration ->changeField ($ table , 'name ' , 'name ' , 'string ' , ['default ' => '' ]);
72+ $ this ->migration ->changeField ($ table , 'name ' , 'name ' , 'string ' , ['value ' => '' ]);
7373 $ this ->migration ->migrationOneTable ($ table );
7474
7575 $ table = 'glpi_plugin_formcreator_formanswers ' ;
@@ -88,15 +88,15 @@ public function fixTables() {
8888 $ this ->migration ->migrationOneTable ($ table );
8989
9090 $ table = 'glpi_plugin_formcreator_questions ' ;
91- $ this ->migration ->changeField ($ table , 'name ' , 'name ' , 'string ' , ['default ' => '' ]);
91+ $ this ->migration ->changeField ($ table , 'name ' , 'name ' , 'string ' , ['value ' => '' ]);
9292 // Assume the content of the 2 following columns is out of date
9393 // because they should have been migrated in version 2.7.0
9494 $ this ->migration ->dropField ($ table , 'range_min ' );
9595 $ this ->migration ->dropField ($ table , 'range_max ' );
9696 $ this ->migration ->migrationOneTable ($ table );
9797
9898 $ table = 'glpi_plugin_formcreator_sections ' ;
99- $ this ->migration ->changeField ($ table , 'name ' , 'name ' , 'string ' , ['default ' => '' ]);
99+ $ this ->migration ->changeField ($ table , 'name ' , 'name ' , 'string ' , ['value ' => '' ]);
100100 $ this ->migration ->migrationOneTable ($ table );
101101
102102 $ table = 'glpi_plugin_formcreator_targettickets ' ;
@@ -105,23 +105,23 @@ public function fixTables() {
105105 ['destination_entity_value ' => '0 ' ],
106106 ['destination_entity_value ' => null ]
107107 );
108- $ this ->migration ->changeField ($ table , 'validation_followup ' , 'validation_followup ' , 'bool ' , ['after ' => 'urgency_question ' , 'default ' => '1 ' ]);
109- $ this ->migration ->changeField ($ table , 'destination_entity ' , 'destination_entity ' , 'integer ' , ['after ' => 'validation_followup ' , 'default ' => '1 ' ]);
108+ $ this ->migration ->changeField ($ table , 'validation_followup ' , 'validation_followup ' , 'bool ' , ['after ' => 'urgency_question ' , 'value ' => '1 ' ]);
109+ $ this ->migration ->changeField ($ table , 'destination_entity ' , 'destination_entity ' , 'integer ' , ['after ' => 'validation_followup ' , 'value ' => '1 ' ]);
110110 $ this ->migration ->changeField ($ table , 'destination_entity_value ' , 'destination_entity_value ' , 'integer ' , ['after ' => 'destination_entity ' , 'default ' => '1 ' ]);
111- $ this ->migration ->changeField ($ table , 'tag_type ' , 'tag_type ' , 'integer ' , ['after ' => 'destination_entity_value ' , 'default ' => '1 ' ]);
111+ $ this ->migration ->changeField ($ table , 'tag_type ' , 'tag_type ' , 'integer ' , ['after ' => 'destination_entity_value ' , 'value ' => '1 ' ]);
112112 $ this ->migration ->changeField ($ table , 'tag_questions ' , 'tag_questions ' , 'string ' , ['after ' => 'tag_type ' ]);
113113 $ this ->migration ->changeField ($ table , 'tag_specifics ' , 'tag_specifics ' , 'string ' , ['after ' => 'tag_questions ' ]);
114- $ this ->migration ->changeField ($ table , 'category_rule ' , 'category_rule ' , 'integer ' , ['after ' => 'tag_specifics ' , 'default ' => '1 ' ]);
114+ $ this ->migration ->changeField ($ table , 'category_rule ' , 'category_rule ' , 'integer ' , ['after ' => 'tag_specifics ' , 'value ' => '1 ' ]);
115115 $ this ->migration ->changeField ($ table , 'category_question ' , 'category_question ' , 'integer ' , ['after ' => 'category_rule ' ]);
116- $ this ->migration ->changeField ($ table , 'associate_rule ' , 'associate_rule ' , 'integer ' , ['after ' => 'category_question ' , 'default ' => '1 ' ]);
116+ $ this ->migration ->changeField ($ table , 'associate_rule ' , 'associate_rule ' , 'integer ' , ['after ' => 'category_question ' , 'value ' => '1 ' ]);
117117 $ this ->migration ->changeField ($ table , 'associate_question ' , 'associate_question ' , 'integer ' , ['after ' => 'associate_rule ' ]);
118- $ this ->migration ->changeField ($ table , 'location_rule ' , 'location_rule ' , 'integer ' , ['after ' => 'associate_question ' , 'default ' => '1 ' ]);
118+ $ this ->migration ->changeField ($ table , 'location_rule ' , 'location_rule ' , 'integer ' , ['after ' => 'associate_question ' , 'value ' => '1 ' ]);
119119 $ this ->migration ->changeField ($ table , 'location_question ' , 'location_question ' , 'integer ' , ['after ' => 'location_rule ' ]);
120- $ this ->migration ->changeField ($ table , 'show_rule ' , 'show_rule ' , 'integer ' , ['after ' => 'location_question ' , 'default ' => '1 ' ]);
121- $ this ->migration ->changeField ($ table , 'sla_rule ' , 'sla_rule ' , 'integer ' , ['after ' => 'show_rule ' , 'default ' => '1 ' ]);
120+ $ this ->migration ->changeField ($ table , 'show_rule ' , 'show_rule ' , 'integer ' , ['after ' => 'location_question ' , 'value ' => '1 ' ]);
121+ $ this ->migration ->changeField ($ table , 'sla_rule ' , 'sla_rule ' , 'integer ' , ['after ' => 'show_rule ' , 'value ' => '1 ' ]);
122122 $ this ->migration ->changeField ($ table , 'sla_question_tto ' , 'sla_question_tto ' , 'integer ' , ['after ' => 'sla_rule ' ]);
123123 $ this ->migration ->changeField ($ table , 'sla_question_ttr ' , 'sla_question_ttr ' , 'integer ' , ['after ' => 'sla_question_tto ' ]);
124- $ this ->migration ->changeField ($ table , 'ola_rule ' , 'ola_rule ' , 'integer ' , ['after ' => 'sla_question_ttr ' , 'default ' => '1 ' ]);
124+ $ this ->migration ->changeField ($ table , 'ola_rule ' , 'ola_rule ' , 'integer ' , ['after ' => 'sla_question_ttr ' , 'value ' => '1 ' ]);
125125 $ this ->migration ->changeField ($ table , 'ola_question_tto ' , 'ola_question_tto ' , 'integer ' , ['after ' => 'ola_rule ' ]);
126126 $ this ->migration ->changeField ($ table , 'ola_question_ttr ' , 'ola_question_ttr ' , 'integer ' , ['after ' => 'ola_question_tto ' ]);
127127 $ this ->migration ->changeField ($ table , 'uuid ' , 'uuid ' , 'string ' , ['after ' => 'ola_question_ttr ' ]);
0 commit comments