
--Migration_RCCP_20241127_155408.txt
ALTER TABLE [dbo].[CompaniesStoreLocationAnalyticsDatas] DROP CONSTRAINT [PK_dbo.CompaniesStoreLocationAnalyticsDatas]
ALTER TABLE [dbo].[CompaniesStoreLocationAnalyticsDatas] ADD [Id] [bigint] NOT NULL IDENTITY
DECLARE @var0 nvarchar(128)
SELECT @var0 = name
FROM sys.default_constraints
WHERE parent_object_id = object_id(N'dbo.CompaniesStoreLocationAnalyticsDatas')
AND col_name(parent_object_id, parent_column_id) = 'CompanyId';
IF @var0 IS NOT NULL
    EXECUTE('ALTER TABLE [dbo].[CompaniesStoreLocationAnalyticsDatas] DROP CONSTRAINT [' + @var0 + ']')
ALTER TABLE [dbo].[CompaniesStoreLocationAnalyticsDatas] ALTER COLUMN [CompanyId] [bigint] NOT NULL
ALTER TABLE [dbo].[CompaniesStoreLocationAnalyticsDatas] ADD CONSTRAINT [PK_dbo.CompaniesStoreLocationAnalyticsDatas] PRIMARY KEY ([Id])
