diff --git a/server/benchmark/migrations/0003_auto_20240819_2132.py b/server/benchmark/migrations/0003_auto_20240819_2132.py new file mode 100644 index 000000000..eb37f581c --- /dev/null +++ b/server/benchmark/migrations/0003_auto_20240819_2132.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.20 on 2024-08-19 21:32 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('benchmark', '0002_alter_benchmark_demo_dataset_tarball_url'), + ] + + operations = [ + migrations.AlterField( + model_name='benchmark', + name='description', + field=models.CharField(blank=True, max_length=256), + ), + migrations.AlterField( + model_name='benchmark', + name='name', + field=models.CharField(max_length=64, unique=True), + ), + ] diff --git a/server/benchmark/models.py b/server/benchmark/models.py index 2e0d51e3d..1633836f4 100644 --- a/server/benchmark/models.py +++ b/server/benchmark/models.py @@ -16,8 +16,8 @@ class Benchmark(models.Model): ("OPERATION", "OPERATION"), ) - name = models.CharField(max_length=20, unique=True) - description = models.CharField(max_length=100, blank=True) + name = models.CharField(max_length=64, unique=True) + description = models.CharField(max_length=256, blank=True) docs_url = models.CharField(max_length=100, blank=True) owner = models.ForeignKey(User, on_delete=models.PROTECT) demo_dataset_tarball_url = models.CharField(max_length=256) diff --git a/server/dataset/migrations/0006_auto_20240819_2132.py b/server/dataset/migrations/0006_auto_20240819_2132.py new file mode 100644 index 000000000..5b3938710 --- /dev/null +++ b/server/dataset/migrations/0006_auto_20240819_2132.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.20 on 2024-08-19 21:32 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('dataset', '0005_alter_dataset_description'), + ] + + operations = [ + migrations.AlterField( + model_name='dataset', + name='location', + field=models.CharField(blank=True, max_length=256), + ), + migrations.AlterField( + model_name='dataset', + name='name', + field=models.CharField(max_length=64), + ), + ] diff --git a/server/dataset/models.py b/server/dataset/models.py index c2f966a86..e3adb427d 100644 --- a/server/dataset/models.py +++ b/server/dataset/models.py @@ -10,9 +10,9 @@ class Dataset(models.Model): ("OPERATION", "OPERATION"), ) - name = models.CharField(max_length=20) + name = models.CharField(max_length=64) description = models.CharField(max_length=256, blank=True) - location = models.CharField(max_length=100, blank=True) + location = models.CharField(max_length=256, blank=True) owner = models.ForeignKey(User, on_delete=models.PROTECT) input_data_hash = models.CharField(max_length=128) generated_uid = models.CharField(max_length=128) diff --git a/server/result/migrations/0003_alter_modelresult_name.py b/server/result/migrations/0003_alter_modelresult_name.py new file mode 100644 index 000000000..1ad39da56 --- /dev/null +++ b/server/result/migrations/0003_alter_modelresult_name.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.20 on 2024-08-19 21:32 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('result', '0002_auto_20231124_0208'), + ] + + operations = [ + migrations.AlterField( + model_name='modelresult', + name='name', + field=models.CharField(blank=True, max_length=64), + ), + ] diff --git a/server/result/models.py b/server/result/models.py index 3bed25b31..9b2376f5e 100644 --- a/server/result/models.py +++ b/server/result/models.py @@ -11,7 +11,7 @@ class ModelResult(models.Model): ("REJECTED", "REJECTED"), ) - name = models.CharField(max_length=20, blank=True) + name = models.CharField(max_length=64, blank=True) owner = models.ForeignKey(User, on_delete=models.PROTECT) benchmark = models.ForeignKey("benchmark.Benchmark", on_delete=models.CASCADE) model = models.ForeignKey("mlcube.MlCube", on_delete=models.PROTECT)