芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/avenida/install/steps/138.json
{ "dbVersion": 138, "appVersion": "1.8.7", "steps": [ { "step": "Fix issue with default permissions for daypart", "action": "INSERT INTO `permission` (entityId, groupId, objectId, view, edit, `delete`) SELECT entityId, groupId, dayPartId, 1, 0, 0 FROM daypart CROSS JOIN permissionentity CROSS JOIN `group` WHERE entity LIKE '%DayPart' AND IsEveryone = 1 AND (isCustom = 1 OR isAlways = 1);" }, { "step": "Patch corrupted DayPart records from 1.8.6 update - if they still exist", "action": "UPDATE `schedule` SET dayPartId = (SELECT dayPartId FROM `daypart` WHERE isCustom = 1 LIMIT 1) WHERE fromDt <> 0 AND toDt <> 2147483647 AND dayPartId IN (SELECT dayPartId FROM `daypart` WHERE isAlways = 1);" }, { "step": "Add filter/sort options to DataSetColumns", "action": "ALTER TABLE datasetcolumn ADD showFilter TINYINT DEFAULT 1 NULL; ALTER TABLE datasetcolumn ADD showSort TINYINT DEFAULT 1 NULL;" } ] }