Skip to content

Commit

Permalink
chore: rationalize migrations
Browse files Browse the repository at this point in the history
Signed-off-by: SdgJlbl <[email protected]>
  • Loading branch information
SdgJlbl committed Oct 23, 2023
1 parent 2bc611e commit b21d5fc
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 119 deletions.
2 changes: 1 addition & 1 deletion backend/api/migrations/0053_function_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Migration(migrations.Migration):
field=models.CharField(
choices=[
("FUNCTION_STATUS_UNKNOWN", "Function Status Unknown"),
("FUNCTION_STATUS_CREATED", "Function Status Created"),
("FUNCTION_STATUS_WAITING", "Function Status Waiting"),
("FUNCTION_STATUS_BUILDING", "Function Status Building"),
("FUNCTION_STATUS_READY", "Function Status Ready"),
("FUNCTION_STATUS_CANCELED", "Function Status Canceled"),
Expand Down
28 changes: 0 additions & 28 deletions backend/api/migrations/0054_alter_function_status.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@

import substrapp.models.datamanager
import substrapp.models.function
import substrapp.storages.minio


class Migration(migrations.Migration):
dependencies = [
("substrapp", "0015_alter_computetaskfailurereport_logs"),
("substrapp", "0014_rename_algo_to_function"),
]

operations = [
Expand All @@ -23,7 +22,7 @@ class Migration(migrations.Migration):
"file",
models.FileField(
max_length=500,
storage=substrapp.storages.minio.MinioStorage("substra-function"),
storage=django.core.files.storage.FileSystemStorage(),
upload_to=substrapp.models.function.upload_to_function,
),
),
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class Migration(migrations.Migration):
dependencies = [
("substrapp", "0017_alter_computetaskfailurereport_logs_and_more"),
("substrapp", "0015_add_functionimage"),
]

operations = [
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit b21d5fc

Please sign in to comment.