Commit 0d0c0578 authored by Timo Stolz's avatar Timo Stolz
Browse files

fix: sign_in(...) should be volatile

parent a9153cfc
Showing with 31 additions and 0 deletions
+31 -0
-- Deploy 0814-tenants-and-users:users/sign-in-is-volatile to pg
-- requires: users/sign-in
BEGIN;
alter function :"id_schema".sign_in(
email_or_username citext,
password varchar,
tenant_id uuid
) volatile;
COMMIT;
-- Revert 0814-tenants-and-users:users/sign-in-is-volatile from pg
BEGIN;
alter function :"id_schema".sign_in(
email_or_username citext,
password varchar,
tenant_id uuid
) stable;
COMMIT;
......@@ -15,3 +15,4 @@ users/my-account-id [users/my-account] 2022-03-09T16:44:27Z Timo Stolz <timo.sto
tenants/my-tenant-id [tenants/my-tenant] 2022-03-09T16:50:18Z Timo Stolz <timo.stolz@psychisch.fit> # add function to retrieve the tenant id of the currently signed in user
users/my-account-id-in-column [users/my-account-id] 2022-03-10T10:06:40Z Timo Stolz <timo.stolz@nullachtvierzehn.de> # provide my_account_id() for triggers
tenants/my-tenant-id-in-column [tenants/my-tenant-id] 2022-03-10T10:08:03Z Timo Stolz <timo.stolz@nullachtvierzehn.de> # provide my_tenant_id() for triggers
users/sign-in-is-volatile [users/sign-in] 2022-03-14T09:08:35Z Timo Stolz <timo.stolz@nullachtvierzehn.de> # sign_in(...) should be volatile
-- Verify 0814-tenants-and-users:users/sign-in-is-volatile on pg
BEGIN;
-- XXX Add verifications here.
ROLLBACK;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment