This is for security, just in case two users have the same cookie, althought it is unlikely, but nevertheless less guessable. I also need to refresh the cookie when the user changes their email address, because it is liked toghether. It does mean that it will logout from everywhere else, but i can not do anything about that.
10 lines
222 B
PL/PgSQL
10 lines
222 B
PL/PgSQL
-- Revert numerus:user_profile from pg
|
|
|
|
begin;
|
|
|
|
drop trigger if exists update_user_profile on numerus.user_profile;
|
|
drop function if exists numerus.update_user_profile();
|
|
drop view if exists numerus.user_profile;
|
|
|
|
commit;
|