mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #30511 -- Updated docs about auto-incrementing primary keys on PostgreSQL.
Follow up to 2eea361eff.
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user