alter table AutomatedTask add EnablePowerShell bit null
go

ALTER Table Schedule
	Add RunAfterDeviceReboot bit  not null 
		Constraint DF_Schedule_RunAfterDeviceReboot DEFAULT(0)
go

ALTER Table Schedule
	Add RunTimeAfterDeviceReboot DateTime null
go

CREATE TABLE ScriptTargetOSLink
(      ScriptID                 int     not null,
      ScriptTargetOSID          TINYINT not null
)

go

