Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

Commit

Permalink
Flyway session view change
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjo-alvarez committed Dec 12, 2024
1 parent 878a83f commit e8f6874
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
drop view public.sessions_status;

CREATE OR REPLACE VIEW public.sessions_status
AS SELECT sessions.id,sessions.id_bootcamp,sessions.session_name,sessions.session_date,sessions.link,sessions.password,
CASE
WHEN sessions.session_date < CURRENT_DATE THEN 'Finished'::text
WHEN sessions.session_date = CURRENT_DATE THEN 'Started'::text
ELSE 'Pending'::text
END AS status
FROM sessions
order by session_name collate "es-ES-x-icu";

0 comments on commit e8f6874

Please sign in to comment.