-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add possibility to ignore filename pairs
- Loading branch information
1 parent
aab199f
commit 68b28b4
Showing
18 changed files
with
477 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
..._engine/apps/api/migrations/0006_rename_ignoredkeypair_ignoredreferencepkpair_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Generated by Django 5.0.7 on 2024-09-25 10:29 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("api", "0005_config_deduplicationset_config"), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameModel( | ||
old_name="IgnoredKeyPair", | ||
new_name="IgnoredReferencePkPair", | ||
), | ||
migrations.RenameField( | ||
model_name="ignoredreferencepkpair", | ||
old_name="first_reference_pk", | ||
new_name="first", | ||
), | ||
migrations.RenameField( | ||
model_name="ignoredreferencepkpair", | ||
old_name="second_reference_pk", | ||
new_name="second", | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="ignoredreferencepkpair", | ||
unique_together={("deduplication_set", "first", "second")}, | ||
), | ||
] |
40 changes: 40 additions & 0 deletions
40
src/hope_dedup_engine/apps/api/migrations/0007_ignoredfilenamepair.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Generated by Django 5.0.7 on 2024-09-25 11:24 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("api", "0006_rename_ignoredkeypair_ignoredreferencepkpair_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="IgnoredFilenamePair", | ||
fields=[ | ||
( | ||
"id", | ||
models.BigAutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
("first", models.CharField(max_length=100)), | ||
("second", models.CharField(max_length=100)), | ||
( | ||
"deduplication_set", | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
to="api.deduplicationset", | ||
), | ||
), | ||
], | ||
options={ | ||
"unique_together": {("deduplication_set", "first", "second")}, | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.