File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
install/migration/update_1.1.1_to_1.2.0 Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 3333use Glpi \DBAL \QueryExpression ;
3434
3535/** @var DBmysql $DB */
36- /** @var Migration $migration */
3736global $ DB ;
3837
3938// Migrate relations based on a country
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ public function testUpdateCountryLocationZoneRelation()
8989 'plugin_carbon_zones_id ' => $ zone_id ,
9090 ]);
9191 $ source_zone_id = $ DB ->insertId ();
92+ $ migration = new Migration ('1.2.0 ' ); // Used in the migration file
9293 $ migration_file = __DIR__ . '/../../install/migration/update_1.1.0_to_1.2.0/04_update_location_zone_relation.php ' ;
9394 $ migration_file = realpath ($ migration_file );
9495 require ($ migration_file );
@@ -134,6 +135,7 @@ public function testUpdateStateLocationZoneRelation()
134135 'plugin_carbon_zones_id ' => $ zone_id ,
135136 ]);
136137 $ source_zone_id = $ DB ->insertId ();
138+ $ migration = new Migration ('1.2.0 ' ); // Used in the migration file
137139 $ migration_file = __DIR__ . '/../../install/migration/update_1.1.1_to_1.2.0/04_update_location_zone_relation.php ' ;
138140 $ migration_file = realpath ($ migration_file );
139141 require ($ migration_file );
You can’t perform that action at this time.
0 commit comments