File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
apps/database/migrations/committed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
-- ! Previous: sha1:de60470eae2711674026eea0ced5e4917011e6ea
2
- -- ! Hash: sha1:9dea4fdd69d1299eefc0f9295f1ceea5face488e
2
+ -- ! Hash: sha1:59b313c6c36382410785d19241393e8110c9b9af
3
3
-- ! Message: users-and-auth
4
4
5
5
-- ! split: 0001-jwt-token-type.sql
@@ -21,6 +21,8 @@ $$ LANGUAGE sql STABLE;
21
21
COMMENT ON FUNCTION app_public.viewer_id() IS ' Gets the id of the viewer who was identified by our JWT.' ;
22
22
23
23
-- ! split: 0010-user-table.sql
24
+ CREATE EXTENSION IF NOT EXISTS citext WITH SCHEMA public;
25
+
24
26
DROP TABLE IF EXISTS app_public .user CASCADE;
25
27
CREATE TABLE app_public .user
26
28
(
@@ -183,6 +185,8 @@ CREATE TRIGGER _100_timestamps
183
185
EXECUTE PROCEDURE app_private .tg__timestamps ();
184
186
185
187
-- ! split: 0060-authenticate-user.sql
188
+ CREATE EXTENSION IF NOT EXISTS pgcrypto WITH SCHEMA public;
189
+
186
190
CREATE FUNCTION app_public .authenticate(username citext,
187
191
password text ) RETURNS app_public .jwt_token AS
188
192
$$
You can’t perform that action at this time.
0 commit comments