Skip to content

Commit 911fe12

Browse files
no change,
1 parent ddfc131 commit 911fe12

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

db/src/api/register.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
create or replace function register(name text, email text, password text,cookie boolean DEFAULT false) returns json as $$
1+
create or replace function register(name text, email text, password text, cookie boolean DEFAULT false) returns json as $$
22
declare
33
usr record;
44
begin

db/src/api/schema.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set search_path = api, public;
66
-- it is needed for the definition of the RLS policies
77
drop role if exists api;
88
create role api;
9-
grant api to current_user; -- this is a workaround for RDS where the master user does not have SUPERUSER priviliges
9+
grant api to current_user; -- this is a workaround for RDS where the master user does not have SUPERUSER priviliges
1010

1111

1212
-- our endpoints

db/src/sample_data/data.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ COPY data.todo (id,todo,private,owner_id) FROM STDIN (FREEZE ON, delimiter ',');
2424
5,item_5,TRUE,2
2525
6,item_6,FALSE,2
2626
\.
27-
--
27+
--
2828
-- restart sequences
2929
ALTER SEQUENCE data.user_id_seq RESTART WITH 3;
3030
ALTER SEQUENCE data.todo_id_seq RESTART WITH 7;
31-
--
31+
--
3232
-- analyze modified tables
3333
ANALYZE data.user;
3434
ANALYZE data.session;

0 commit comments

Comments
 (0)