django1/django/db/backends/postgresql
Jon Dufresne 75410228df Fixed #31473 -- Made sql_flush() use RESTART IDENTITY to reset sequences on PostgreSQL.
The sql_flush() positional argument sequences is replaced by the boolean
keyword-only argument reset_sequences. This ensures that the old
function signature can't be used by mistake when upgrading Django. When
the new argument is True, the sequences of the truncated tables will
reset. Using a single boolean value, rather than a list, allows making a
binary yes/no choice as to whether to reset all sequences rather than a
working on a completely different set.
2020-04-17 11:57:24 +02:00
..
__init__.py Fixed #25175 -- Renamed the postgresql_psycopg2 database backend to postgresql. 2015-08-07 09:33:17 -04:00
base.py Fixed #31233 -- Closed database connections and cursors after use. 2020-02-06 15:35:23 +01:00
client.py Fixed #29501 -- Allowed dbshell to pass options to underlying tool. 2020-04-14 14:02:51 +01:00
creation.py Refs #31233 -- Changed DatabaseWrapper._nodb_connection to _nodb_cursor(). 2020-02-06 15:29:38 +01:00
features.py Simplified imports from django.db and django.contrib.gis.db. 2020-02-04 13:20:06 +01:00
introspection.py Simplified imports from django.db and django.contrib.gis.db. 2020-02-04 13:20:06 +01:00
operations.py Fixed #31473 -- Made sql_flush() use RESTART IDENTITY to reset sequences on PostgreSQL. 2020-04-17 11:57:24 +02:00
schema.py Fixed #31106 -- Fixed migrations crash on PostgreSQL 10+ when adding FK constraints inline and changing data. 2019-12-23 23:28:59 +01:00