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


class Migration(migrations.Migration):

    dependencies = [
        ("models", "6125_details_search_component"),
    ]

    operations = [
        migrations.AddField(model_name="resourcexresource", name="inverserelationshiptype", field=models.TextField(blank=True, null=True),),
        migrations.AddField(
            model_name="resourcexresource",
            name="tileid",
            field=models.ForeignKey(
                blank=True,
                db_column="tileid",
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name="resxres_tile_id",
                to="models.TileModel",
            ),
        ),
        migrations.AddField(
            model_name="resourcexresource",
            name="nodeid",
            field=models.ForeignKey(
                blank=True,
                db_column="nodeid",
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name="resxres_node_id",
                to="models.Node",
            ),
        ),
    ]

@@ -205,24 +205,1016 @@
 rations = %5B%0A
+        migrations.AlterField(%0A            model_name=%22resourcexresource%22,%0A            name=%22resourceinstanceidfrom%22,%0A            field=models.ForeignKey(%0A                blank=True,%0A                db_column=%22resourceinstanceidfrom%22,%0A                db_constraint=False,%0A                null=True,%0A                on_delete=django.db.models.deletion.CASCADE,%0A                related_name=%22resxres_resource_instance_ids_from%22,%0A                to=%22models.ResourceInstance%22,%0A            ),%0A        ),%0A        migrations.AlterField(%0A            model_name=%22resourcexresource%22,%0A            name=%22resourceinstanceidto%22,%0A            field=models.ForeignKey(%0A                blank=True,%0A                db_column=%22resourceinstanceidto%22,%0A                db_constraint=False,%0A                null=True,%0A                on_delete=django.db.models.deletion.CASCADE,%0A                related_name=%22resxres_resource_instance_ids_to%22,%0A                to=%22models.ResourceInstance%22,%0A            ),%0A        ),%0A
         migr

remove the foreign key constraint on the resourceXresource table, re #6020