Skip to content

Commit

Permalink
Add unique constraint to 'Url' field in threats_watcher
Browse files Browse the repository at this point in the history
Update model to make the 'Url' field unique to prevent duplicates in the database.
  • Loading branch information
NEZRI Ygal authored and NEZRI Ygal committed Jul 24, 2024
1 parent 68c45d6 commit 3479cc5
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.0.2 on 2024-07-24 14:56

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('threats_watcher', '0013_auto_20210517_0956'),
]

operations = [
migrations.AlterField(
model_name='source',
name='url',
field=models.URLField(max_length=350, unique=True),
),
]

0 comments on commit 3479cc5

Please sign in to comment.