diff --git a/keystone/common/sql/migrations/versions/2025.02/expand/e8725d6fa226_add_project_id_index_to_project_.py b/keystone/common/sql/migrations/versions/2025.02/expand/e8725d6fa226_add_project_id_index_to_project_.py new file mode 100644 index 0000000000..17d7f2ba32 --- /dev/null +++ b/keystone/common/sql/migrations/versions/2025.02/expand/e8725d6fa226_add_project_id_index_to_project_.py @@ -0,0 +1,31 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +"""Add project_id index to project_endpoint_group + +Revision ID: e8725d6fa226 +Revises: 47147121 +Create Date: 2024-09-03 11:45:01.577266 +""" + +from alembic import op + + +# revision identifiers, used by Alembic. +revision = 'e8725d6fa226' +down_revision = '47147121' +branch_labels = None +depends_on = None + + +def upgrade(): + op.create_index('idx_project_id', 'project_endpoint_group', ['project_id'])