Skip to content

Commit

Permalink
Merge pull request #23 from Scippy/master
Browse files Browse the repository at this point in the history
Updated script for SQL update and added Install
  • Loading branch information
Scippy authored Oct 4, 2020
2 parents b059be9 + 9ba1ed1 commit c1a9628
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 1 deletion.
Binary file added Installs/PropertyAgent.01.10.12.zip
Binary file not shown.
51 changes: 51 additions & 0 deletions Providers/DataProviders/SqlDataProvider/01.10.12.SqlDataProvider
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
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@
<None Include="01.08.06.SqlDataProvider" />
<None Include="01.08.07.SqlDataProvider" />
<None Include="01.09.00.SqlDataProvider" />
<None Include="01.10.12.SqlDataProvider" />
<None Include="Uninstall.SqlDataProvider" />
<Compile Include="SqlDataProvider.vb">
<SubType>Code</SubType>
Expand Down
2 changes: 1 addition & 1 deletion Ventrian.PropertyAgent.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@
<Content Include="ImportTemplateDefinition.ascx" />
<Content Include="Installs\PropertyAgent.01.08.10.zip" />
<Content Include="Installs\PropertyAgent.01.09.00_DNN742_DNN804_Install.zip" />
<Content Include="Installs\PropertyAgent.01.10.00_DNN742_DNN92_Install.zip" />
<Content Include="JS\Lightbox\jquery.lightbox-0.4.js" />
<Content Include="JS\Lightbox\jquery.lightbox-0.4.pack.js" />
<Content Include="JS\Rating\jquery.rating.js" />
Expand Down Expand Up @@ -1481,6 +1480,7 @@
<Content Include="ImageHandlerExt.ashx" />
<Content Include="Documentation\PropertyAgentAdminGuide.01.00.00.pdf" />
<Content Include="Documentation\PropertyAgentTemplateGuide.doc" />
<Content Include="Installs\PropertyAgent.01.10.12.zip" />
<None Include="My Project\Application.myapp">
<Generator>MyApplicationCodeGenerator</Generator>
<LastGenOutput>Application.Designer.vb</LastGenOutput>
Expand Down

0 comments on commit c1a9628

Please sign in to comment.