Django-pg-migration-tools

Latest version: v0.1.18

Safety actively analyzes 723158 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

0.1.12

Fixed

- Fixed a bug preventing the `SaferAddFieldForeignKey` operation of being
initialised with a `to` argument that is a string instead of models.Model

0.1.11

Added

- A new operation to add foreign key fields to an existing table has been
added: `SaferAddFieldForeignKey`

0.1.10

Updated

- The `migrate_with_timeouts` callback argument `RetryState` now includes the
name of the database that the retry being performed is associated with.

Fixed

- Fixed an import error introduced on v0.1.9 that would break that version for
users of psycopg2.

0.1.9

Added

- The `SaferAlterFieldSetNotNull` operation was added. This will more safely
change a field from nullable to not nullable.

0.1.8

Fixed

- Fixed a bug where `SaferAddUniqueConstraint` and
`SaferRemoveUniqueConstraint` would accept unique constraints with conditions
on them, but produce invalid SQL. Unique constraints with conditions are now
handled as partial unique indexes, as per the equivalent Django
`AddConstraint` and `RemoveConstraint` operations.

Added

- `SaferRemoveUniqueConstraint` operation was added. This is the complement for
`SaferAddUniqueConstraint` - but with the forward and backwards operations
swapped.

0.1.7

Fixed

- Fixes a bug in `migrate_with_timeouts` where passing a `stdout` parameter to
the command would raise a TypeError.

Page 2 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.