{
    "id": "mysql140-x-index-lifecycle",
    "title": "Создать индекс каталога и удалить только его",
    "columns": [
        "Наблюдение",
        "Результат"
    ],
    "rows": [
        [
            "Артикулы выбранной страницы",
            "LAMP, OLD"
        ],
        [
            "Выдача до и после индекса совпадает",
            true
        ],
        [
            "Повторное имя отклонено",
            true
        ],
        [
            "Свой индекс удалён",
            true
        ],
        [
            "Повторное удаление",
            false
        ],
        [
            "Предупреждений отсутствующего индекса",
            1
        ],
        [
            "Документов после удаления индекса",
            4
        ]
    ],
    "checks": {
        "same_result": true,
        "duplicate_failed": true,
        "create_return_observed": true,
        "drop_existing": true,
        "drop_absent": true,
        "specific_absence_warning": true,
        "documents_intact": true,
        "owned_collections_removed": true
    },
    "observations": {
        "index_description": {
            "fields": [
                {
                    "field": "$.category",
                    "type": "TEXT(40)",
                    "required": true
                },
                {
                    "field": "$.price",
                    "type": "INT UNSIGNED",
                    "required": true
                }
            ]
        },
        "before": [
            {
                "sku": "LAMP",
                "price": 1200
            },
            {
                "sku": "OLD",
                "price": 99
            }
        ],
        "after": [
            {
                "sku": "LAMP",
                "price": 1200
            },
            {
                "sku": "OLD",
                "price": 99
            }
        ],
        "create_return_type": "bool",
        "duplicate_exception_chain": [
            {
                "class": "mysql_xdevapi\\Exception",
                "code": 1061,
                "message": "[1061][42000] Duplicate key name 'category_price'"
            }
        ],
        "dropped": true,
        "drop_absent": false,
        "drop_absent_warnings": [
            "mysql_xdevapi\\Collection::dropIndex(): [1091][42000] Can't DROP 'category_price'; check that column\/key exists"
        ]
    },
    "runtime": {
        "php": "8.3.35",
        "extension": "8.0.30",
        "server_version": 80413,
        "schema": "php_manual_x139",
        "host": "127.0.0.1",
        "port": 33140
    },
    "owned_collections": [
        "mysql140_indexes_461902c76178"
    ],
    "removed_collections": [
        "mysql140_indexes_461902c76178"
    ]
}
