Removed Applicability

Added menu options to correct funtions and procedures
Removed Applicability from PurgeData
Bug Fixes for Paste/Replace etc.
Update DTS and User ID before saving Config
Search from current rather than root node
This commit is contained in:
Rich
2012-03-22 20:28:58 +00:00
parent 4fc0ae9966
commit 8dd3d6481a
7 changed files with 657 additions and 55 deletions

View File

@@ -1003,25 +1003,25 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'{datetime}' ,
GO
/****** Object: Table [dbo].[Applicabilities] Script Date: 01/06/2012 15:02:52 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Applicabilities](
[ItemID] [int] NOT NULL,
[ScopeID] [int] NOT NULL,
[DTS] [datetime] NOT NULL CONSTRAINT [DF_Applicabilities_DTS] DEFAULT (getdate()),
[UserID] [nvarchar](100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL CONSTRAINT [DF_Applicabilities_UserID] DEFAULT (upper(suser_sname())),
[LastChanged] [timestamp] NOT NULL,
CONSTRAINT [PK_Applicabilities] PRIMARY KEY CLUSTERED
(
[ItemID] ASC,
[ScopeID] 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
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'{datetime}' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Applicabilities', @level2type=N'COLUMN',@level2name=N'DTS'
GO
--SET ANSI_NULLS ON
--GO
--SET QUOTED_IDENTIFIER ON
--GO
--CREATE TABLE [Applicabilities](
-- [ItemID] [int] NOT NULL,
-- [ScopeID] [int] NOT NULL,
-- [DTS] [datetime] NOT NULL CONSTRAINT [DF_Applicabilities_DTS] DEFAULT (getdate()),
-- [UserID] [nvarchar](100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL CONSTRAINT [DF_Applicabilities_UserID] DEFAULT (upper(suser_sname())),
-- [LastChanged] [timestamp] NOT NULL,
-- CONSTRAINT [PK_Applicabilities] PRIMARY KEY CLUSTERED
--(
-- [ItemID] ASC,
-- [ScopeID] 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
--EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'{datetime}' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Applicabilities', @level2type=N'COLUMN',@level2name=N'DTS'
--GO
/****** Object: Table [dbo].[Details] Script Date: 01/06/2012 15:02:53 ******/
SET ANSI_NULLS ON
@@ -1413,16 +1413,16 @@ REFERENCES [Roles] ([RID])
GO
ALTER TABLE [Permissions] CHECK CONSTRAINT [FK_Permissions_Roles]
GO
ALTER TABLE [dbo].[Applicabilities] WITH CHECK ADD CONSTRAINT [FK_Applicabilities_Items] FOREIGN KEY([ItemID])
REFERENCES [dbo].[Items] ([ItemID])
GO
ALTER TABLE [dbo].[Applicabilities] CHECK CONSTRAINT [FK_Applicabilities_Items]
GO
ALTER TABLE [dbo].[Applicabilities] WITH CHECK ADD CONSTRAINT [FK_Applicabilities_Scopes] FOREIGN KEY([ScopeID])
REFERENCES [dbo].[Scopes] ([ScopeID])
GO
ALTER TABLE [dbo].[Applicabilities] CHECK CONSTRAINT [FK_Applicabilities_Scopes]INSERT INTO [Connections] ([Name]) VALUES ('Bozo')
GO
--ALTER TABLE [dbo].[Applicabilities] WITH CHECK ADD CONSTRAINT [FK_Applicabilities_Items] FOREIGN KEY([ItemID])
--REFERENCES [dbo].[Items] ([ItemID])
--GO
--ALTER TABLE [dbo].[Applicabilities] CHECK CONSTRAINT [FK_Applicabilities_Items]
--GO
--ALTER TABLE [dbo].[Applicabilities] WITH CHECK ADD CONSTRAINT [FK_Applicabilities_Scopes] FOREIGN KEY([ScopeID])
--REFERENCES [dbo].[Scopes] ([ScopeID])
--GO
--ALTER TABLE [dbo].[Applicabilities] CHECK CONSTRAINT [FK_Applicabilities_Scopes]
--GO
/****** Object: View [dbo].[vDuplicates1] Script Date: 01/06/2012 15:02:55 ******/
SET ANSI_NULLS ON
GO
@@ -1475,6 +1475,7 @@ Inserted.ParentID) as RowNumber,* from Inserted)
Print 'Trigger Fired'
END
GO
INSERT INTO [Connections] ([Name]) VALUES ('Bozo')
INSERT INTO [Formats] ([Name],[Data]) VALUES ('Bozo',cast('<x/>' as xml))
INSERT INTO [Folders] ([Name],[ShortName],[ManualOrder]) VALUES ('Bozo','Bozo',1)
INSERT INTO [DocVersions] ([FolderID],[Name]) VALUES (1,'Bozo')
@@ -1490,7 +1491,7 @@ Insert Into [Details] ([ContentID],[ItemType],[Text]) VALUES (1,1,'Bozo')
Insert Into [Roles] ([Name],[Title]) VALUES ('Bozo','Bozo')
Insert Into [Permissions] ([RID],[PermLevel],[VersionType],[PermValue]) VALUES (1,1,1,1)
Insert Into [Scopes] ([Name]) VALUES ('Bozo')
Insert Into [Applicabilities] ([ItemID],[ScopeID]) VALUES (1,1)
--Insert Into [Applicabilities] ([ItemID],[ScopeID]) VALUES (1,1)
Insert Into [Associations] ([VersionID],[ROFstID]) VALUES (1,1)
INSERT INTO [Documents] ([LibTitle]) VALUES ('Bozo')
Insert Into [DROUsages] ([DocID],[ROID],[RODbID]) VALUES (1,'Bozo',1)