Skip to content

Commit

Permalink
Adjust old migrations to not use index_together
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Aug 21, 2024
1 parent 84f190c commit 4ba35ef
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Generated by Django 4.1.7 on 2023-03-29 14:58

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


class Migration(migrations.Migration):
Expand All @@ -10,12 +10,13 @@ class Migration(migrations.Migration):
]

operations = [
migrations.AlterIndexTogether(
name="dashblock",
index_together={("org", "is_active", "dashblock_type", "priority")},
migrations.AddIndex(
model_name="dashblock",
index=models.Index(
fields=["org", "is_active", "dashblock_type", "priority"], name="dashblocks__org_id_024805_idx"
),
),
migrations.AlterIndexTogether(
name="dashblocktype",
index_together={("slug", "name")},
migrations.AddIndex(
model_name="dashblocktype", index=models.Index(fields=["slug", "name"], name="dashblocks__slug_c0c6c6_idx")
),
]
8 changes: 4 additions & 4 deletions dash/orgs/migrations/0031_alter_orgbackend_index_together.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Generated by Django 4.1.7 on 2023-03-29 13:57

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


class Migration(migrations.Migration):
Expand All @@ -9,8 +9,8 @@ class Migration(migrations.Migration):
]

operations = [
migrations.AlterIndexTogether(
name="orgbackend",
index_together={("org", "is_active", "slug")},
migrations.AddIndex(
model_name="orgbackend",
index=models.Index(fields=["org", "is_active", "slug"], name="orgs_orgbac_org_id_607508_idx"),
),
]

0 comments on commit 4ba35ef

Please sign in to comment.