Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GAP-2533: Retrospectively fix BST ads in prod #276

Merged
merged 6 commits into from
Apr 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
UPDATE grant_advert
SET opening_date = opening_date - INTERVAL '1 hour'
WHERE opening_date > '2024-03-31 01:00:00'::TIMESTAMP
AND opening_date < '2024-10-27 02:00:00'::TIMESTAMP
AND created > '2023-09-28 12:00:00'::TIMESTAMP
AND status = 'SCHEDULED';

UPDATE grant_advert
SET closing_date = closing_date - INTERVAL '1 hour'
WHERE closing_date > '2024-03-31 01:00:00'::TIMESTAMP
AND closing_date < '2024-10-27 02:00:00'::TIMESTAMP
AND created > '2023-09-28 12:00:00'::TIMESTAMP
AND (status = 'PUBLISHED' OR status = 'SCHEDULED');
Loading