-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from Scippy/master
Updated script for SQL update and added Install
- Loading branch information
Showing
4 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
51 changes: 51 additions & 0 deletions
51
Providers/DataProviders/SqlDataProvider/01.10.12.SqlDataProvider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
ALTER TABLE {databaseOwner}{objectQualifier}Ventrian_PropertyAgent_Statistic ADD | ||
ModuleID int NULL | ||
GO | ||
|
||
DROP PROCEDURE {databaseOwner}{objectQualifier}Ventrian_PropertyAgent_StatisticAdd | ||
GO | ||
|
||
CREATE PROCEDURE {databaseOwner}{objectQualifier}Ventrian_PropertyAgent_StatisticAdd | ||
@PropertyID int, | ||
@UserID int, | ||
@RemoteAddress nvarchar(50), | ||
@ModuleID int | ||
AS | ||
INSERT INTO | ||
{databaseOwner}{objectQualifier}Ventrian_PropertyAgent_Statistic(PropertyID, DateCreated, UserID, RemoteAddress, ModuleID) | ||
VALUES | ||
(@PropertyID, GetDate(), @UserID, @RemoteAddress, @ModuleID) | ||
GO | ||
|
||
CREATE PROCEDURE {databaseOwner}{objectQualifier}[Ventrian_PropertyAgent_StatisticGet] | ||
@PropertyID int | ||
AS | ||
|
||
SELECT | ||
[DateCreated], | ||
[UserID], | ||
[RemoteAddress] | ||
FROM | ||
{objectQualifier}Ventrian_PropertyAgent_Statistic | ||
WHERE | ||
[PropertyID] = @PropertyID | ||
ORDER BY | ||
[DateCreated] | ||
GO | ||
|
||
CREATE PROCEDURE {databaseOwner}{objectQualifier}[Ventrian_PropertyAgent_StatisticList] | ||
@ModuleID int | ||
AS | ||
|
||
SELECT | ||
[UserID], | ||
[DateCreated], | ||
[RemoteAddress], | ||
[ModuleID] | ||
FROM | ||
{objectQualifier}Ventrian_PropertyAgent_Statistic | ||
WHERE | ||
[ModuleID] = @ModuleID | ||
ORDER BY | ||
[DateCreated] | ||
GO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters