docs: Change tutorials to use identity column instead of serial/sequence

Resolves https://github.com/PostgREST/postgrest-docs/issues/311
This commit is contained in:
Wolfgang Walther
2024-02-19 21:54:15 +01:00
committed by Wolfgang Walther
parent 4325a4f9d5
commit e7dde2806c
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ Our API will have one endpoint, :code:`/todos`, which will come from a table.
.. code-block:: postgres .. code-block:: postgres
create table api.todos ( create table api.todos (
id serial primary key, id int primary key generated by default as identity,
done boolean not null default false, done boolean not null default false,
task text not null, task text not null,
due timestamptz due timestamptz
-1
View File
@@ -22,7 +22,6 @@ The previous tutorial created a :code:`web_anon` role in the database with which
grant usage on schema api to todo_user; grant usage on schema api to todo_user;
grant all on api.todos to todo_user; grant all on api.todos to todo_user;
grant usage, select on sequence api.todos_id_seq to todo_user;
Step 2. Make a Secret Step 2. Make a Secret
--------------------- ---------------------