-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: SdgJlbl <[email protected]>
- Loading branch information
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
backend/substrapp/migrations/0015_alter_computetaskfailurereport_logs.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,25 @@ | ||
# Generated by Django 4.1.7 on 2023-08-10 08:43 | ||
|
||
from django.db import migrations | ||
from django.db import models | ||
|
||
import substrapp.models.compute_task_failure_report | ||
import substrapp.storages.minio | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("substrapp", "0014_rename_algo_to_function"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="computetaskfailurereport", | ||
name="logs", | ||
field=models.FileField( | ||
max_length=36, | ||
storage=substrapp.storages.minio.MinioStorage("substra-compute-task-logs"), | ||
upload_to=substrapp.models.compute_task_failure_report._upload_to, | ||
), | ||
), | ||
] |
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,37 @@ | ||
# Generated by Django 4.1.7 on 2023-08-11 11:30 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations | ||
from django.db import models | ||
|
||
import substrapp.models.datamanager | ||
import substrapp.models.function | ||
import substrapp.storages.minio | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("substrapp", "0015_alter_computetaskfailurereport_logs"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="FunctionImage", | ||
fields=[ | ||
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")), | ||
( | ||
"file", | ||
models.FileField( | ||
max_length=500, | ||
storage=substrapp.storages.minio.MinioStorage("substra-function"), | ||
upload_to=substrapp.models.function.upload_to_function, | ||
), | ||
), | ||
("checksum", models.CharField(blank=True, max_length=64)), | ||
( | ||
"function", | ||
models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to="substrapp.function"), | ||
), | ||
], | ||
), | ||
] |