Bin
2025-12-17 262fecaa75b2909ad244f12c3b079ed3ff4ae329
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Generated by Django 4.2.15 on 2024-08-14 16:44
 
from django.db import migrations, models
 
 
class Migration(migrations.Migration):
 
    dependencies = [
        ("ml_models", "0009_alter_thirdpartymodelversion_provider"),
    ]
 
    operations = [
        migrations.AddField(
            model_name="modelinterface",
            name="skill_name",
            field=models.CharField(
                choices=[
                    ("TextClassification", "TextClassification"),
                    ("NamedEntityRecognition", "NamedEntityRecognition"),
                ],
                max_length=255,
                null=True,
            ),
        ),
        migrations.RunSQL(
            # set existing ModelInterface objects to text classification
            sql=[
                "UPDATE ml_models_modelinterface SET skill_name = 'TextClassification' WHERE skill_name IS NULL;",
            ],
            # statement above is not reversible, but doesn't matter because the column will be dropped, so do nothing
            reverse_sql=[]
        ),
    ]