mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 09:16:10 -06:00
12237 change index_together to indexes
This commit is contained in:
parent
0de4d0a2e1
commit
c0d389d523
@ -0,0 +1,17 @@
|
|||||||
|
# Generated by Django 4.2.2 on 2023-06-14 23:26
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
dependencies = [
|
||||||
|
('extras', '0092_delete_jobresult'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RenameIndex(
|
||||||
|
model_name='taggeditem',
|
||||||
|
new_name='extras_tagg_content_717743_idx',
|
||||||
|
old_fields=('content_type', 'object_id'),
|
||||||
|
),
|
||||||
|
]
|
@ -61,6 +61,4 @@ class TaggedItem(GenericTaggedItemBase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
index_together = (
|
indexes = [models.Index(fields=["content_type", "object_id"])]
|
||||||
("content_type", "object_id")
|
|
||||||
)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user