style(sql): make migrations more greppable
This commit is contained in:
77 files changed
+553
-1458
No files matched your search
@@ -21,9 +21,7 @@ insert into auth_token_status_enm(name)
|
||||
|
||||
-- add the state column with a default to the auth_token table.
|
||||
alter table auth_token
|
||||
add column status text
|
||||
not null
|
||||
default 'token issued' -- safest default
|
||||
add column status text not null default 'token issued' -- safest default
|
||||
references auth_token_status_enm(name)
|
||||
on update cascade
|
||||
on delete restrict;
|
||||
@@ -45,4 +43,4 @@ create or replace view auth_token_account as
|
||||
inner join auth_account as aa
|
||||
on at.auth_account_id = aa.public_id;
|
||||
|
||||
commit;
|
||||
commit;
|
||||
Reference in new issue
Block a user