Skip to content

Commit

Permalink
Make server changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aristizabal95 committed Aug 19, 2024
1 parent 77c639a commit 78ec04f
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 5 deletions.
23 changes: 23 additions & 0 deletions server/benchmark/migrations/0003_auto_20240819_2132.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
4 changes: 2 additions & 2 deletions server/benchmark/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
23 changes: 23 additions & 0 deletions server/dataset/migrations/0006_auto_20240819_2132.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
4 changes: 2 additions & 2 deletions server/dataset/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
18 changes: 18 additions & 0 deletions server/result/migrations/0003_alter_modelresult_name.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
2 changes: 1 addition & 1 deletion server/result/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 78ec04f

Please sign in to comment.