Changes between Initial Version and Version 3 of Ticket #27996


Ignore:
Timestamp:
Mar 30, 2017, 2:46:22 AM (8 years ago)
Author:
Paolo Melchiorre
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27996

    • Property Triage Stage UnreviewedAccepted
  • Ticket #27996 – Description

    initial v3  
    11After 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.
    22
    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 function from:
     3Starting 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:
    44
    55{{{
Back to Top