From 66048efc11780c6ee7d425dad14ffddff090db2f Mon Sep 17 00:00:00 2001 From: Lukas Joss Date: Wed, 9 Oct 2024 14:48:33 +0200 Subject: [PATCH] PB-987: Add item-search to conformance endpoint --- .../0051_update_conformance_endpoint.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 app/stac_api/migrations/0051_update_conformance_endpoint.py diff --git a/app/stac_api/migrations/0051_update_conformance_endpoint.py b/app/stac_api/migrations/0051_update_conformance_endpoint.py new file mode 100644 index 00000000..19453b6f --- /dev/null +++ b/app/stac_api/migrations/0051_update_conformance_endpoint.py @@ -0,0 +1,18 @@ +# Generated by Django 5.0.8 on 2024-10-09 11:45 + +from django.db import migrations + + +def add_landing_page_version(apps, schema_editor): + LandingPage = apps.get_model("stac_api", "LandingPage") + lp = LandingPage.objects.get(version='v1') + lp.conformsTo.insert(2, 'https://api.stacspec.org/v1.0.0/item-search') + lp.save() + + +class Migration(migrations.Migration): + dependencies = [ + ("stac_api", "0050_collectionassetupload_and_more"), + ] + + operations = [migrations.RunPython(add_landing_page_version)]