f0ddbe72db08fe6dcc0178bc78c05abac6559ae5 — Stephen Paul Weber 3 years ago 5573078

Creating with a literal stored the time that was 'now' when the view was
created. We want the current time when the view is accessed.
1 files changed, 1 insertions(+), 1 deletions(-)

M deploy/plan_log_with_range.sql
M deploy/plan_log_with_range.sql => deploy/plan_log_with_range.sql +1 -1
@@ 24,7 24,7 @@ CREATE VIEW customer_plans AS
		upper(date_range) AS expires_at
	FROM plan_log
	WHERE NOT ('[now,now]' << date_range)
	WHERE NOT (tsrange(LOCALTIMESTAMP, LOCALTIMESTAMP, '[]') << date_range)
	ORDER BY customer_id, date_range DESC;