Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Improved release notes for ticket #10164

Thanks Aymeric for the suggestions.

refs #10164
  • Loading branch information...
commit 910a5760f6f5ffc42b4b264b08057207b8e26106 1 parent 0d74f95
@timgraham timgraham authored
Showing with 11 additions and 6 deletions.
  1. +11 −6 docs/releases/1.7.txt
View
17 docs/releases/1.7.txt
@@ -345,13 +345,18 @@ Miscellaneous
when called on an instance without a primary key value. This is done to
avoid mutable ``__hash__`` values in containers.
-* The :meth:`django.db.backends.sqlite3.DatabaseCreation.sql_create_model`
- will now create :class:`~django.db.models.AutoField` columns in SQLite
- databases using the ``AUTOINCREMENT`` option, which guarantees monotonic
+* :class:`~django.db.models.AutoField` columns in SQLite databases will now be
+ created using the ``AUTOINCREMENT`` option, which guarantees monotonic
increments. This will cause primary key numbering behavior to change on
- SQLite, becoming consistent with most other SQL databases. If you have a
- database created with an older version of Django, you will need to migrate
- it to take advantage of this feature. See ticket #10164 for details.
+ SQLite, becoming consistent with most other SQL databases. This will only
+ apply to newly created tables. If you have a database created with an older
+ version of Django, you will need to migrate it to take advantage of this
+ feature. For example, you could do the following:
+
+ #) Use :djadmin:`dumpdata` to save your data.
+ #) Rename the existing database file (keep it as a backup).
+ #) Run :djadmin:`migrate` to create the updated schema.
+ #) Use :djadmin:`loaddata` to import the fixtures you exported in (1).
* ``django.contrib.auth.models.AbstractUser`` no longer defines a
:meth:`~django.db.models.Model.get_absolute_url()` method. The old definition
Please sign in to comment.
Something went wrong with that request. Please try again.