diff --git a/src/Quidjibo.SqlServer/Scripts/Work/Receive.sql b/src/Quidjibo.SqlServer/Scripts/Work/Receive.sql index 48ab5d8..1c413b8 100644 --- a/src/Quidjibo.SqlServer/Scripts/Work/Receive.sql +++ b/src/Quidjibo.SqlServer/Scripts/Work/Receive.sql @@ -1,4 +1,4 @@ -DELETE FROM [Quidjibo].[Work] WITH (ROWLOCK, READPAST, UPDLOCK) +DELETE FROM [Quidjibo].[Work] WITH (ROWLOCK, READPAST, UPDLOCK) WHERE [CreatedOn] < @DeleteOn AND ([ExpireOn] IS NULL OR [ExpireOn] < @DeleteOn); diff --git a/src/Quidjibo.SqlServer/Scripts/Work/Setup.sql b/src/Quidjibo.SqlServer/Scripts/Work/Setup.sql index b4a757e..f6d7c45 100644 --- a/src/Quidjibo.SqlServer/Scripts/Work/Setup.sql +++ b/src/Quidjibo.SqlServer/Scripts/Work/Setup.sql @@ -31,4 +31,3 @@ CREATE NONCLUSTERED INDEX [IX_Work_Cleanup] ON [Quidjibo].[Work] [CreatedOn] ASC, [ExpireOn] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] -GO \ No newline at end of file