Column verification added before extending an existing table
This commit is contained in:
parent
c958211ce7
commit
2a44c64e40
1 changed files with 4 additions and 24 deletions
|
@ -856,31 +856,17 @@ END
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
IF NOT EXISTS(select 1 from sys.columns COLS INNER JOIN sys.objects OBJS ON OBJS.object_id=COLS.object_id and OBJS.type='U' AND OBJS.name='GlobalDnsRecords' AND COLS.name='SrvPriority')
|
||||||
|
BEGIN
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ALTER TABLE [dbo].[GlobalDnsRecords] ADD
|
ALTER TABLE [dbo].[GlobalDnsRecords] ADD
|
||||||
[SrvPriority] [int] NULL,
|
[SrvPriority] [int] NULL,
|
||||||
[SrvWeight] [int] NULL,
|
[SrvWeight] [int] NULL,
|
||||||
[SrvPort] [int] NULL
|
[SrvPort] [int] NULL
|
||||||
|
END
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ALTER PROCEDURE [dbo].[AddDnsRecord]
|
ALTER PROCEDURE [dbo].[AddDnsRecord]
|
||||||
(
|
(
|
||||||
@ActorID int,
|
@ActorID int,
|
||||||
|
@ -1129,13 +1115,7 @@ GO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
USE [WebsitePanel]
|
|
||||||
GO
|
|
||||||
/****** Object: StoredProcedure [dbo].[GetDnsRecordsByServer] Script Date: 06/01/2011 23:42:41 ******/
|
|
||||||
SET ANSI_NULLS ON
|
|
||||||
GO
|
|
||||||
SET QUOTED_IDENTIFIER ON
|
|
||||||
GO
|
|
||||||
|
|
||||||
ALTER PROCEDURE [dbo].[GetDnsRecordsByServer]
|
ALTER PROCEDURE [dbo].[GetDnsRecordsByServer]
|
||||||
(
|
(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue