This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,69 @@
PRINT N'Altering Table [dbo].[T_NEMKOTOTTMUNKAIDO]...';
GO
ALTER TABLE [dbo].[T_NEMKOTOTTMUNKAIDO]
ADD [C_TULAJDONOSID] INT NULL;
GO
PRINT N'Creating Index [dbo].[T_NEMKOTOTTMUNKAIDO].[NCI_NemKotottMunkaido_TulajdonosId]...';
GO
CREATE NONCLUSTERED INDEX [NCI_NemKotottMunkaido_TulajdonosId]
ON [dbo].[T_NEMKOTOTTMUNKAIDO]([C_TULAJDONOSID] ASC);
GO
PRINT N'Altering Table [dbo].[T_ORARENDIORA]...';
GO
ALTER TABLE [dbo].[T_ORARENDIORA]
ADD [C_ORATULAJDONOSID] INT NULL;
GO
PRINT N'Creating Index [dbo].[T_ORARENDIORA].[NCI_OrarendiOra_OraTulajdonosId]...';
GO
CREATE NONCLUSTERED INDEX [NCI_OrarendiOra_OraTulajdonosId]
ON [dbo].[T_ORARENDIORA]([C_ORATULAJDONOSID] ASC);
GO
PRINT N'Creating Foreign Key [dbo].[FK_NemKotottMunkaido_TulajdonosId_REF_Felhasznalo]...';
GO
ALTER TABLE [dbo].[T_NEMKOTOTTMUNKAIDO] WITH NOCHECK
ADD CONSTRAINT [FK_NemKotottMunkaido_TulajdonosId_REF_Felhasznalo] FOREIGN KEY ([C_TULAJDONOSID]) REFERENCES [dbo].[T_FELHASZNALO] ([ID]);
GO
PRINT N'Creating Foreign Key [dbo].[FK_OrarendiOra_OraTulajdonosId_REF_Felhasznalo]...';
GO
ALTER TABLE [dbo].[T_ORARENDIORA] WITH NOCHECK
ADD CONSTRAINT [FK_OrarendiOra_OraTulajdonosId_REF_Felhasznalo] FOREIGN KEY ([C_ORATULAJDONOSID]) REFERENCES [dbo].[T_FELHASZNALO] ([ID]);
GO
PRINT N'Checking existing data against newly created constraints';
GO
ALTER TABLE [dbo].[T_NEMKOTOTTMUNKAIDO] WITH CHECK CHECK CONSTRAINT [FK_NemKotottMunkaido_TulajdonosId_REF_Felhasznalo];
ALTER TABLE [dbo].[T_ORARENDIORA] WITH CHECK CHECK CONSTRAINT [FK_OrarendiOra_OraTulajdonosId_REF_Felhasznalo];
EXEC dev.uspCreateSchemaViews 'T_NEMKOTOTTMUNKAIDO,T_ORARENDIORA'
EXEC dev.sp_Global_GenerateAsyncAuditTriggerAll
GO
PRINT N'Update complete.';
GO