style(sql): make migrations more greppable
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user