mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-17 19:09:11 +03:00
core: add index on enabled field of sources (#10572)
* core: add index on enabled field of sources Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * migrations Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * re migrations Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> --------- Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
committed by
GitHub
parent
4f2ff6f065
commit
cf9a4a3c00
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 5.0.7 on 2024-07-22 13:32
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("authentik_core", "0037_remove_source_property_mappings"),
|
||||
("authentik_flows", "0027_auto_20231028_1424"),
|
||||
("authentik_policies", "0011_policybinding_failure_result_and_more"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddIndex(
|
||||
model_name="source",
|
||||
index=models.Index(fields=["enabled"], name="authentik_c_enabled_d72365_idx"),
|
||||
),
|
||||
]
|
||||
@@ -683,6 +683,11 @@ class Source(ManagedModel, SerializerModel, PolicyBindingModel):
|
||||
"name",
|
||||
]
|
||||
),
|
||||
models.Index(
|
||||
fields=[
|
||||
"enabled",
|
||||
]
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user