-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathUpdateDatabase_3.0.1.0_to_3.0.2.0.sql
More file actions
52 lines (39 loc) · 1.19 KB
/
Copy pathUpdateDatabase_3.0.1.0_to_3.0.2.0.sql
File metadata and controls
52 lines (39 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Use [arachnode.net]
UPDATE cfg.[Version] Set Value = '3.0.2.0'
USE [arachnode.net]
GO
/****** Object: Table [dbo].[BusinessInformation] Script Date: 05/14/2013 07:56:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[BusinessInformation](
[WebPageID] [bigint] NOT NULL,
[Name] [varchar](255) NULL,
[Address1] [varchar](255) NULL,
[Address2] [varchar](255) NULL,
[City] [varchar](255) NULL,
[State] [varchar](255) NULL,
[Zip] [varchar](255) NULL,
[PhoneNumber] [varchar](255) NULL,
[Category] [varchar](255) NULL,
[Latitude] [varchar](255) NULL,
[Longitude] [varchar](255) NULL,
CONSTRAINT [PK_BusinessInformation] PRIMARY KEY CLUSTERED
(
[WebPageID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[BusinessInformation] WITH CHECK ADD CONSTRAINT [FK_BusinessInformation_WebPages] FOREIGN KEY([WebPageID])
REFERENCES [dbo].[WebPages] ([ID])
ON UPDATE CASCADE
ON DELETE CASCADE
GO
ALTER TABLE [dbo].[BusinessInformation] CHECK CONSTRAINT [FK_BusinessInformation_WebPages]
GO
GO