Skip to content

Commit

Permalink
Fix migrations 4x (#10176) (#10177)
Browse files Browse the repository at this point in the history
* - Fixing migrations upg 33x -> 4x

* fix migration

* missing files

* - Fixing migrations upg 33x -> 4x

* - Fixing migrations upg 33x -> 4x

Co-authored-by: mattiagiupponi <mattia.giupponi@gmail.com>

Co-authored-by: Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com>
Co-authored-by: mattiagiupponi <mattia.giupponi@gmail.com>
  • Loading branch information
3 people authored Oct 19, 2022
1 parent afa0638 commit a5c1b54
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion geonode/base/migrations/0060_resourcebase_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def update_state_value(apps, schema_editor):
class Migration(migrations.Migration):

dependencies = [
('base', '0059_fill_empty_resource_type'),
('base', '0064_resourcebase_metadata'),
]

operations = [
Expand Down
6 changes: 6 additions & 0 deletions geonode/base/migrations/0064_resourcebase_metadata.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Generated by Django 2.2.24 on 2022-01-28 10:51

from django.db import migrations, models
import uuid


class Migration(migrations.Migration):
Expand All @@ -15,4 +16,9 @@ class Migration(migrations.Migration):
name='metadata',
field=models.ManyToManyField(blank=True, null=True, to='base.ExtraMetadata', verbose_name='Extra Metadata'),
),
migrations.AlterField(
model_name='resourcebase',
name='uuid',
field=models.CharField(max_length=36, unique=True, default=str(uuid.uuid4)),
),
]
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def remove_upload_size_limit_objects(apps, schema_editor):
class Migration(migrations.Migration):

dependencies = [
('upload', '0033_auto_20210531_1252'),
('upload', '0031_upload_resume_url'),
]

operations = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def copy_uploaded_files(apps, _):
class Migration(migrations.Migration):

dependencies = [
('upload', '0031_upload_resume_url'),
('upload', '0033_upload_store_spatial_files'),
]

operations = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Migration(migrations.Migration):

dependencies = [
('base', '0062_resourcebase_files'),
('upload', '0031_auto_20210527_1520'),
('upload', '0033_auto_20210527_1520'),
]

operations = [
Expand Down
2 changes: 1 addition & 1 deletion geonode/upload/migrations/0033_auto_20210531_1252.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Migration(migrations.Migration):

dependencies = [
('base', '0062_resourcebase_files'),
('upload', '0032_auto_20210528_1556'),
('upload', '0033_auto_20210528_1556'),
]

operations = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class Migration(migrations.Migration):

dependencies = [
('upload', '0035_update_uploadsizelimit_objects'),
('upload', '0032_uploadsizelimit'),
]

operations = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def update_upload_size_limit_objects(apps, schema_editor):
class Migration(migrations.Migration):

dependencies = [
('upload', '0034_uploadsizelimit'),
('upload', '0033_auto_20210531_1252'),
]

operations = [
Expand Down
2 changes: 1 addition & 1 deletion geonode/upload/migrations/0037_uploadparallelismlimit.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def remove_upload_parallelism_limit_objects(apps, schema_editor):
class Migration(migrations.Migration):

dependencies = [
('upload', '0036_upload_store_spatial_files'),
('upload', '0035_update_uploadsizelimit_objects'),
]

operations = [
Expand Down

0 comments on commit a5c1b54

Please sign in to comment.