From 01db72796b306e662112d356e733ce324a6fcd70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 14 Jun 2020 17:12:29 +0200 Subject: [PATCH] MAPG-69 fix migration - transaction should not be started in that scope --- database/migrations/data/20200612_2124_map_area.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/database/migrations/data/20200612_2124_map_area.php b/database/migrations/data/20200612_2124_map_area.php index d6460ef..dae5e11 100644 --- a/database/migrations/data/20200612_2124_map_area.php +++ b/database/migrations/data/20200612_2124_map_area.php @@ -10,8 +10,6 @@ $select->columns(['id', 'bound_south_lat', 'bound_west_lng', 'bound_north_lat', $result = $select->execute(); -\Container::$dbConnection->startTransaction(); - while ($map = $result->fetch(IResultSet::FETCH_ASSOC)) { $bounds = Bounds::createDirectly($map['bound_south_lat'], $map['bound_west_lng'], $map['bound_north_lat'], $map['bound_east_lng']); @@ -20,5 +18,3 @@ while ($map = $result->fetch(IResultSet::FETCH_ASSOC)) { $modify->set('area', $bounds->calculateApproximateArea()); $modify->save(); } - -\Container::$dbConnection->commit();