Skip to content

Commit c725d00

Browse files
authored
Merge pull request #43 from buildingSMART/tfk-magic-and-clamav
IVS-605 - Data model changes for clamav/magic check
2 parents 1761570 + db726dc commit c725d00

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Generated by Django 5.1.1 on 2025-10-08 14:14
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('ifc_validation_models', '0017_add_user_ci_index'),
10+
('ifc_validation_models', '0017_model_status_rocksdb_conversion_and_more'),
11+
]
12+
13+
operations = [
14+
]

models.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,16 @@ class License(models.TextChoices):
613613
help_text="Status of the Syntax Validation.",
614614
)
615615

616+
status_magic_clamav = models.CharField(
617+
max_length=1,
618+
choices=Status.choices,
619+
default=Status.NOT_VALIDATED,
620+
db_index=True,
621+
null=False,
622+
blank=False,
623+
help_text="Status of the file magic and anti-virus checks.",
624+
)
625+
616626
status_header_syntax = models.CharField(
617627
max_length=1,
618628
choices=Status.choices,
@@ -956,6 +966,7 @@ class Type(models.TextChoices):
956966
"""
957967
The type of an Validation Task.
958968
"""
969+
MAGIC_AND_CLAMAV = 'MAGIC_AND_CLAMAV', 'File magic and anti-virus checks'
959970
SYNTAX = 'SYNTAX', 'STEP Physical File Syntax'
960971
HEADER_SYNTAX = 'HEADER_SYNTAX', 'STEP Physical File Syntax (HEADER section)'
961972
SCHEMA = 'SCHEMA', 'Schema (EXPRESS language)'

0 commit comments

Comments
 (0)