alter table AutomatedTaskDeviceLink
	add ScheduleID int null
go

alter table AutomatedTaskDeviceLink
		add constraint AutomatedTaskDeviceLink_ScheduleID_FK 
		    foreign key (ScheduleID)
		        references Schedule(ScheduleID)
go

