Skip to content

Commit

Permalink
Merge pull request #8 from hardcoretech/fix/plm-535-Fail-To-Drop-Inde…
Browse files Browse the repository at this point in the history
…x-During-Migrations

fix(PLM-535): Fail to drop index during migrations
  • Loading branch information
Kilik Kuo authored May 25, 2022
2 parents 0b7ed27 + 1daf415 commit 9088464
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Changelog
=========

1.0.1
-----

Fixes:

- Fail to drop index during migrations


1.0.0
-----

Expand Down
2 changes: 1 addition & 1 deletion rest_framework_idempotency_key/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.0'
__version__ = '1.0.1'
8 changes: 4 additions & 4 deletions rest_framework_idempotency_key/migrations/0003_remove_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ class Migration(migrations.Migration):
]

operations = [
migrations.RemoveConstraint(
model_name='idempotencykey',
name='Unique IdempotencyKey (user, idempotency_key)',
),
migrations.RemoveField(
model_name='idempotencykey',
name='user',
),
migrations.RemoveConstraint(
model_name='idempotencykey',
name='Unique IdempotencyKey (user, idempotency_key)',
),
migrations.AddConstraint(
model_name='idempotencykey',
constraint=models.UniqueConstraint(
Expand Down

0 comments on commit 9088464

Please sign in to comment.