if not exists (select * from sys.syscolumns where name = 'NextScanDateTime' and id = object_id(N'dbo.InventoryScanConfiguration'))
    alter table dbo.InventoryScanConfiguration add NextScanDateTime datetime2 null;