Skip to content

Commit

Permalink
Fix failure to reverse migrate #11568
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Oct 23, 2024
1 parent d0395e1 commit e75df01
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Generated by Django 4.2.10 on 2024-06-18 15:52

from django.db import migrations, models
from django.db import migrations


class Migration(migrations.Migration):
Expand Down Expand Up @@ -185,11 +185,6 @@ class Migration(migrations.Migration):
"""

operations = [
migrations.AddField(
model_name="geojsongeometry",
name="featureid",
field=models.UUIDField(blank=True, null=True, serialize=False),
),
migrations.RunSQL(
forward,
reverse,
Expand Down
11 changes: 10 additions & 1 deletion arches/app/models/migrations/10999_update_principaluser.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Generated by Django 2.2.6 on 2019-12-13 11:56

from django.conf import settings
from django.db import migrations
from django.db import migrations, models


class Migration(migrations.Migration):
Expand All @@ -21,4 +21,13 @@ class Migration(migrations.Migration):
sql="update resource_instances a set principaluser_id = b.userid::integer from (select userid, resourceinstanceid from edit_log where edittype = 'create' and userid != '' and userid is not null)b where a.resourceinstanceid::text = b.resourceinstanceid",
reverse_sql="select 1;",
),
# Moved from 10799_geojsongeometry_featureid in 7.6.2
# because RunSQL that calls refresh_geojson_geometries() needs to be
# fully isolated in its own migration file, and it was found too late
# to insert a new file into the migration history.
migrations.AddField(
model_name="geojsongeometry",
name="featureid",
field=models.UUIDField(blank=True, null=True, serialize=False),
),
]
1 change: 1 addition & 0 deletions releases/7.6.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Fixes bug in which resource relationships fail to appear in visualize mode if using default deny as a non-superuser #[11539](https://github.com/archesproject/arches/pull/11539)
- Fixes bypassing of display logic of details table in search results for client-cached resources #[11537](https://github.com/archesproject/arches/issues/11537)
- Fixes the indexing error when the number of resources in a batch becomes smaller than 8 #[11556](https://github.com/archesproject/arches/issues/11556)
- Fix failure to reverse migrate #[11568](https://github.com/archesproject/arches/issues/11568)
- Fail with 404 rather than 500 (AttributeError) for missing search components in search_home route #[11532](https://github.com/archesproject/arches/issues/11532)
- Adds an alert message before running the bulk deletion #[11405](https://github.com/archesproject/arches/issues/11405)

Expand Down

0 comments on commit e75df01

Please sign in to comment.