diff options
author | Simon Rettberg | 2020-11-03 08:16:18 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-11-03 08:16:18 +0100 |
commit | ff612388820a8e5214a734ad18735be72006bad6 (patch) | |
tree | 0f7d66b9c0f655aa7dfc977af1eb6acf3691ec53 /modules-available/locations | |
parent | [locationinfo] remove unused code (diff) | |
download | slx-admin-ff612388820a8e5214a734ad18735be72006bad6.tar.gz slx-admin-ff612388820a8e5214a734ad18735be72006bad6.tar.xz slx-admin-ff612388820a8e5214a734ad18735be72006bad6.zip |
[locations] install: Fix migration of openingtimes
Diffstat (limited to 'modules-available/locations')
-rw-r--r-- | modules-available/locations/install.inc.php | 2 |
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'); } |