style(sql): make migrations more greppable

This commit is contained in:
Michael Gaffney committed 2022-08-08 18:17:57 -04:00
1 parent 02dd28f587
commit ac6f14a37f
77 files changed
+553 -1458

No files matched your search

@@ -1,7 +1,6 @@
begin;
create function wt_add_seconds(sec integer, ts timestamp with time zone)
returns timestamp with time zone
create function wt_add_seconds(sec integer, ts timestamp with time zone) returns timestamp with time zone
as $$
select ts + sec * '1 second'::interval;
$$ language sql
@@ -10,8 +9,7 @@ begin;
comment on function wt_add_seconds is
'wt_add_seconds returns ts + sec.';
create function wt_add_seconds_to_now(sec integer)
returns timestamp with time zone
create function wt_add_seconds_to_now(sec integer) returns timestamp with time zone
as $$
select wt_add_seconds(sec, current_timestamp);
$$ language sql