5") === false) { finalResponse(UPDATE_FAILED, 'Could not migrate openingtime data from table to table'); } if (Database::exec("ALTER TABLE locationinfo_locationconfig DROP COLUMN openingtime") === false) { finalResponse(UPDATE_FAILED, 'Could not delete old openingtime column'); } $res[] = UPDATE_DONE; } // 2021-03-19: Fix this. No idea how this came to be, maybe during dev only? But better be safe... Database::exec("UPDATE location SET openingtime = NULL WHERE openingtime = ''"); // Create response for browser responseFromArray($res);