mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Refs #30511 -- Updated docs about auto-incrementing primary keys on PostgreSQL.
Follow up to 2eea361eff
.
This commit is contained in:
parent
166a3b3263
commit
081871bc20
4 changed files with 17 additions and 13 deletions
|
@ -39,7 +39,7 @@ The above ``Person`` model would create a database table like this:
|
|||
.. code-block:: sql
|
||||
|
||||
CREATE TABLE myapp_person (
|
||||
"id" serial NOT NULL PRIMARY KEY,
|
||||
"id" bigint NOT NULL PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,
|
||||
"first_name" varchar(30) NOT NULL,
|
||||
"last_name" varchar(30) NOT NULL
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue