ALTER TABLE  R5ACTIVITIES ADD COLUMN ACT_SCHEDHRS NUMERIC(24,6);
ALTER TABLE  R5ACTSCHEDULES ADD COLUMN ACS_COMMENT NVARCHAR(60);
ALTER TABLE R5DOCKLINES ADD COLUMN DKL_MOBILEDATEUPDATED DATETIME;
ALTER TABLE R5OBJECTS ADD COLUMN OBJ_UDFNOTE01 NVARCHAR (2000);
ALTER TABLE R5OBJECTS ADD COLUMN OBJ_UDFNOTE02 NVARCHAR (2000); 

UPDATE R5CONFIGSETTINGS SET cfs_xmlconfig=
'{"sections" :[{"name"   : "Schedule Labor","fields" :  [{"id":"ACS_ACTIVITY","lbl":"Activity","type":"LOV-1","def":"","ro":"YES","rq":"YES","len":"","hid":"NO"},{"id":"ACS_RESPONSIBLE","lbl":"Employee","type":"LOV-1","def":"","ro":"NO","rq":"NO","len":"30","hid":"NO"},{"id":"ACS_SCHED","lbl":"Scheduled Date","type":"DATE","def":"","ro":"NO","rq":"YES","len":"30","hid":"NO"},{"id":"ACS_HOURS","lbl":"Scheduled Hours","type":"NUM","def":"","ro":"NO","rq":"NO","len":"30","hid":"NO"},{"id":"ACS_SCHEDULER","lbl":"Scheduled By","type":"CHAR","def":"","ro":"NO","rq":"NO","len":"30","hid":"NO"},{"id":"ACS_TRADE","lbl":"Trade","type":"LOV-1","def":"","ro":"NO","rq":"YES","len":"30","hid":"NO"},{"id":"ACS_SHIFT","lbl":"Shift","type":"LOV-1","def":"","ro":"NO","rq":"NO","len":"30","hid":"NO"},{"id":"ACS_SCHED_HRS","lbl":"Act. Sched. Hours","type":"CHAR","def":"","ro":"YES","rq":"NO","len":"30","hid":"NO"},{"id":"ACS_ACT_HRS","lbl":"Act. Actual Hours","type":"CHAR","def":"","ro":"YES","rq":"NO","len":"30","hid":"NO"},{"id":"ACS_COMMENT","lbl":"Comment","type":"CHAR","def":"","ro":"NO","rq":"NO","len":"60","hid":"NO"}]}]}'
WHERE cfs_code='TCJSCH_IPAD';

UPDATE R5APPSETTINGS SET AST_VALUE = '11401' WHERE AST_NAME='DBVERSION';
--update r5configsettings
--set CFS_XMLCONFIG='{ "sections": [{ "name": "", "fields": [{ "id": "DKL_OBJECT", "lbl": "Asset ID", "type": "LOV-2", "def": "", "ro": "NO", "rq": "YES", "len": "", "hid": "NO" }, { "id": "DKL_OBJECT_ORG", "lbl": "Asset Org.", "type": "LOV-1", "def": "", "ro": "NO", "rq": "YES", "len": "", "hid": "NO" }, { "id": "DKL_MRC", "lbl": "Department", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "", "hid": "NO" }, { "id": "DKL_ORDLINE", "lbl": "Purchase Order-Line", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "", "hid": "NO" },{ "id": "DKL_DOCKID", "lbl": "Store", "type": "LOV-1", "def": "", "ro": "NO", "rq": "YES", "len": "", "hid": "NO" }, { "id": "DKL_BIN", "lbl": "Bin", "type": "LOV-1", "def": "", "ro": "NO", "rq": "YES", "len": "", "hid": "NO" }, { "id": "DKL_LOT", "lbl": "Lot", "type": "LOV-1", "def": "", "ro": "NO", "rq": "YES", "len": "", "hid": "NO" }, { "id": "DKL_SUPPLIER", "lbl": "Supplier", "type": "CHAR", "def": "", "ro": "YES", "rq": "NO", "len": "", "hid": "NO" }, { "id": "DKL_ORDERQTY", "lbl": "Order Qty.", "type": "NUM", "def": "", "ro": "YES", "rq": "NO", "len": "", "hid": "NO" }, { "id": "DCK_PACKSLIP", "lbl": "Packing Slip", "type": "CHAR", "def": "", "ro": "NO", "rq": "NO", "len": "", "hid": "NO" }, { "id":"DCK_RECVDATE", "lbl":"Received Date", "type":"DATE", "def":"", "ro":"NO", "rq":"YES", "len":"80", "hid":"NO" }] }, { "name": "PHOTOS", "sectype": "DOCUMENTS", "fields": [] }] }'
--where cfs_code='TCRECA_IPAD' and cfs_group='*';
