Changes between Initial Version and Version 3 of Ticket #27996
- Timestamp:
- Mar 30, 2017, 2:46:22 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27996
- Property Triage Stage Unreviewed → Accepted
-
Ticket #27996 – Description
initial v3 1 1 After the introduction of the UUID Field in Django 1.8, I believe that django.contrib.postgres could benefit from some custom functions based on the pgcrypto extension of PostgreSQL (see https://www.postgresql.org/docs/9.6/static/pgcrypto.html). That kind of functions would be very helpful for apply a migration that adds a unique non-nullable field to a table with existing rows. 2 2 3 Starting from "Migrations that add unique fields" (see https://docs.djangoproject.com/en/dev/howto/writing-migrations/#migrations-that-add-unique-fields) I speed up the `gen_uuid` using `GEN_RANDOM_UUID` function , I change the functionfrom:3 Starting from "Migrations that add unique fields" (see https://docs.djangoproject.com/en/dev/howto/writing-migrations/#migrations-that-add-unique-fields) I speed up the `gen_uuid` using `GEN_RANDOM_UUID` function changing it from: 4 4 5 5 {{{