26ff8d9b4f
Set up repository with legacy .NET Framework 4.8 source (OLD/), new .NET 10 Blazor solution (NEW/), OpenSpec specifications, documentation, and project configuration.
16 lines
480 B
Transact-SQL
16 lines
480 B
Transact-SQL
-- Migration: 043_CreateResetPartialSearchesProcedure
|
|
-- Source: OLD/Database/StoredProcedures/ResetPartialSearches.sql
|
|
-- Resets searches that were started but not completed (cleanup after crash)
|
|
|
|
CREATE OR ALTER PROCEDURE [dbo].[ResetPartialSearches]
|
|
AS
|
|
BEGIN
|
|
-- Reset status and start timestamp for searches begun but not finished
|
|
UPDATE dbo.Search
|
|
SET Status = 1,
|
|
StartDT = NULL
|
|
WHERE StartDT IS NOT NULL
|
|
AND EndDT IS NULL;
|
|
END
|
|
GO
|