1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #11519: Add a SQL index for IPAddress host value

This commit is contained in:
Jeremy Stretch
2023-08-02 08:45:56 -04:00
parent 0bb86f1e7d
commit 8f271151a7
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# Generated by Django 4.1.10 on 2023-08-02 12:43
from django.db import migrations, models
import django.db.models.functions.comparison
import ipam.fields
import ipam.lookups
class Migration(migrations.Migration):
dependencies = [
('ipam', '0066_iprange_mark_utilized'),
]
operations = [
migrations.AddIndex(
model_name='ipaddress',
index=models.Index(django.db.models.functions.comparison.Cast(ipam.lookups.Host('address'), output_field=ipam.fields.IPAddressField()), name='ipam_ipaddress_host'),
),
]