summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2020-11-03 08:16:18 +0100
committerSimon Rettberg2020-11-03 08:16:18 +0100
commitff612388820a8e5214a734ad18735be72006bad6 (patch)
tree0f7d66b9c0f655aa7dfc977af1eb6acf3691ec53
parent[locationinfo] remove unused code (diff)
downloadslx-admin-ff612388820a8e5214a734ad18735be72006bad6.tar.gz
slx-admin-ff612388820a8e5214a734ad18735be72006bad6.tar.xz
slx-admin-ff612388820a8e5214a734ad18735be72006bad6.zip
[locations] install: Fix migration of openingtimes
-rw-r--r--modules-available/locations/install.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/locations/install.inc.php b/modules-available/locations/install.inc.php
index 5664c7ed..c5fd9688 100644
--- a/modules-available/locations/install.inc.php
+++ b/modules-available/locations/install.inc.php
@@ -50,7 +50,7 @@ if (tableHasColumn('locationinfo_locationconfig', 'openingtime')) {
"UPDATE location, locationinfo_locationconfig
SET location.openingtime = locationinfo_locationconfig.openingtime
WHERE location.locationid = locationinfo_locationconfig.locationid
- AND Length(location.openingtime) < 5
+ AND (Length(location.openingtime) < 5 OR location.openingtime IS NULL)
AND Length(locationinfo_locationconfig.openingtime) > 5") === false) {
finalResponse(UPDATE_FAILED, 'Could not migrate openingtime data from table to table');
}