-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: auto unlock locked tasks after 3 days
- Loading branch information
1 parent
6f18583
commit 0216242
Showing
3 changed files
with
119 additions
and
4 deletions.
There are no files selected for viewing
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
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,22 @@ | ||
-- ## Migration to: | ||
-- * track the last time an entity was updated | ||
|
||
-- Start a transaction | ||
BEGIN; | ||
|
||
-- Add column 'updated_at' to 'odk_entities' table | ||
DO $$ | ||
BEGIN | ||
IF NOT EXISTS ( | ||
SELECT 1 | ||
FROM information_schema.columns | ||
WHERE table_name='odk_entities' AND column_name='updated_at' | ||
) THEN | ||
ALTER TABLE public.odk_entities | ||
ADD COLUMN updated_at VARCHAR; | ||
END IF; | ||
END $$; | ||
|
||
|
||
-- Commit the transaction | ||
COMMIT; |