Skip to content

Commit

Permalink
update defaults handling
Browse files Browse the repository at this point in the history
  • Loading branch information
tbicr committed May 29, 2024
1 parent 4b812bd commit e4128af
Show file tree
Hide file tree
Showing 4 changed files with 241 additions and 58 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# django-pg-zero-downtime-migrations changelog

## 0.16
- changed `ADD COLUMN DEFAULT NULL` to safe operation for code default
- changed `ADD COLUMN DEFAULT NOT NULL` to safe operation for `db_default` in django 5.0+
- added `ZERO_DOWNTIME_MIGRATIONS_KEEP_DEFAULT` settings and changed `ADD COLUMN DEFAULT NOT NULL` with this settings to safe operation for django<5.0
- improved README

## 0.15
- added idempotent mode and `ZERO_DOWNTIME_MIGRATIONS_IDEMPOTENT_SQL` setting
- fixed django 3.2 degradation with missing `skip_default_on_alter` method
Expand Down
Loading

0 comments on commit e4128af

Please sign in to comment.