
--Migration_RCCP_20241128_173317.txt
DECLARE @var0 nvarchar(128)
SELECT @var0 = name
FROM sys.default_constraints
WHERE parent_object_id = object_id(N'dbo.BranchCatchmentDatas')
AND col_name(parent_object_id, parent_column_id) = 'OperatingHour';
IF @var0 IS NOT NULL
    EXECUTE('ALTER TABLE [dbo].[BranchCatchmentDatas] DROP CONSTRAINT [' + @var0 + ']')
ALTER TABLE [dbo].[BranchCatchmentDatas] ALTER COLUMN [OperatingHour] [nvarchar](max) NULL
DECLARE @var1 nvarchar(128)
SELECT @var1 = name
FROM sys.default_constraints
WHERE parent_object_id = object_id(N'dbo.CompanyStoreLocationAnalyticsDatas')
AND col_name(parent_object_id, parent_column_id) = 'Data';
IF @var1 IS NOT NULL
    EXECUTE('ALTER TABLE [dbo].[CompanyStoreLocationAnalyticsDatas] DROP CONSTRAINT [' + @var1 + ']')
ALTER TABLE [dbo].[CompanyStoreLocationAnalyticsDatas] ALTER COLUMN [Data] [nvarchar](max) NULL
