Skip to content

Commit

Permalink
fix(migration): make migration compatible with django 3 and 4
Browse files Browse the repository at this point in the history
  • Loading branch information
pkyosx committed Jul 29, 2024
1 parent 1b0209c commit 77f04b4
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,19 @@ class Migration(migrations.Migration):
]

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

0 comments on commit 77f04b4

Please sign in to comment.