{
  "schema_version": 1,
  "kind": "controlled-native-software-experiment",
  "generated_at_utc": "2026-11-11T04:25:37.023462+00:00",
  "environment": {
    "python": "3.12.3 (main, Aug 31 2026, 10:18:26) [GCC 13.3.0]",
    "platform": "Linux-6.8.0-147-generic-x86_64-with-glibc2.39",
    "sqlite_version": "3.45.1",
    "sqlite_source_id": "2024-01-30 16:01:20 e876e51a0ed5c5b3126f52e532044363a014bc594cfefa87ffb5b82257ccalt1",
    "compile_options": [
      "ATOMIC_INTRINSICS=1",
      "COMPILER=gcc-13.3.0",
      "DEFAULT_AUTOVACUUM",
      "DEFAULT_CACHE_SIZE=-2000",
      "DEFAULT_FILE_FORMAT=4",
      "DEFAULT_JOURNAL_SIZE_LIMIT=-1",
      "DEFAULT_MMAP_SIZE=0",
      "DEFAULT_PAGE_SIZE=4096",
      "DEFAULT_PCACHE_INITSZ=20",
      "DEFAULT_RECURSIVE_TRIGGERS",
      "DEFAULT_SECTOR_SIZE=4096",
      "DEFAULT_SYNCHRONOUS=2",
      "DEFAULT_WAL_AUTOCHECKPOINT=1000",
      "DEFAULT_WAL_SYNCHRONOUS=2",
      "DEFAULT_WORKER_THREADS=0",
      "DIRECT_OVERFLOW_READ",
      "ENABLE_COLUMN_METADATA",
      "ENABLE_DBSTAT_VTAB",
      "ENABLE_FTS3",
      "ENABLE_FTS3_PARENTHESIS",
      "ENABLE_FTS3_TOKENIZER",
      "ENABLE_FTS4",
      "ENABLE_FTS5",
      "ENABLE_LOAD_EXTENSION",
      "ENABLE_MATH_FUNCTIONS",
      "ENABLE_PREUPDATE_HOOK",
      "ENABLE_RTREE",
      "ENABLE_SESSION",
      "ENABLE_STMTVTAB",
      "ENABLE_UNLOCK_NOTIFY",
      "ENABLE_UPDATE_DELETE_LIMIT",
      "HAVE_ISNAN",
      "LIKE_DOESNT_MATCH_BLOBS",
      "MALLOC_SOFT_LIMIT=1024",
      "MAX_ATTACHED=10",
      "MAX_COLUMN=2000",
      "MAX_COMPOUND_SELECT=500",
      "MAX_DEFAULT_PAGE_SIZE=32768",
      "MAX_EXPR_DEPTH=1000",
      "MAX_FUNCTION_ARG=127",
      "MAX_LENGTH=1000000000",
      "MAX_LIKE_PATTERN_LENGTH=50000",
      "MAX_MMAP_SIZE=0x7fff0000",
      "MAX_PAGE_COUNT=0xfffffffe",
      "MAX_PAGE_SIZE=65536",
      "MAX_SCHEMA_RETRY=25",
      "MAX_SQL_LENGTH=1000000000",
      "MAX_TRIGGER_DEPTH=1000",
      "MAX_VARIABLE_NUMBER=250000",
      "MAX_VDBE_OP=250000000",
      "MAX_WORKER_THREADS=8",
      "MUTEX_PTHREADS",
      "SECURE_DELETE",
      "SOUNDEX",
      "SYSTEM_MALLOC",
      "TEMP_STORE=1",
      "THREADSAFE=1",
      "USE_URI"
    ],
    "sqlite_libraries": [
      {
        "path": "/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6",
        "sha256": "85265a9d4afca6f4b325ceb078b669c754fb881abed4cafe91ccebe9d625d975"
      }
    ]
  },
  "cases": [
    {
      "case": "external-baseline",
      "source_mode": "DELETE",
      "index_origin": "external",
      "initial": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "stages": [],
      "before_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": true
      },
      "guard_accepts": null,
      "decision": "commit",
      "after_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "backup_completed": true,
      "reopened": {
        "source": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "delete"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "parent_key",
                "parent",
                "CREATE UNIQUE INDEX parent_key ON parent(id)"
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "parent_key",
                1,
                "c",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        },
        "backup": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "delete"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "parent_key",
                "parent",
                "CREATE UNIQUE INDEX parent_key ON parent(id)"
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "parent_key",
                1,
                "c",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        }
      },
      "artifacts": {
        "source": {
          "file": "delete-external-baseline-source.sqlite",
          "sha256": "a900e5bab73a692c696fb38875a5fb75e0e962ff84aac8c06c83843c71511180",
          "bytes": 16384
        },
        "backup": {
          "file": "delete-external-baseline-backup.sqlite",
          "sha256": "264399205e97bdf8bfbff1ad8aa8673dab0ebe4870b18b19c18e530ddde37b97",
          "bytes": 16384
        }
      },
      "read_only_hashes_unchanged": true
    },
    {
      "case": "external-drop-index",
      "source_mode": "DELETE",
      "index_origin": "external",
      "initial": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "stages": [
        {
          "sql": "DROP INDEX parent_key",
          "outcome": {
            "status": "ok",
            "rows": []
          },
          "state": {
            "foreign_keys": {
              "status": "ok",
              "rows": [
                [
                  1
                ]
              ]
            },
            "journal_mode": {
              "status": "ok",
              "rows": [
                [
                  "delete"
                ]
              ]
            },
            "integrity_check": {
              "status": "ok",
              "rows": [
                [
                  "ok"
                ]
              ]
            },
            "foreign_key_check": {
              "status": "error",
              "code": 1,
              "name": "SQLITE_ERROR",
              "message": "foreign key mismatch - \"child\" referencing \"parent\""
            },
            "schema": {
              "status": "ok",
              "rows": [
                [
                  "table",
                  "child",
                  "child",
                  "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
                ],
                [
                  "table",
                  "parent",
                  "parent",
                  "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
                ]
              ]
            },
            "parent_indexes": {
              "status": "ok",
              "rows": []
            },
            "parent_rows": {
              "status": "ok",
              "rows": [
                [
                  1,
                  "volume-A"
                ]
              ]
            },
            "child_rows": {
              "status": "ok",
              "rows": [
                [
                  10,
                  1
                ]
              ]
            },
            "in_transaction": true
          }
        }
      ],
      "before_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "error",
          "code": 1,
          "name": "SQLITE_ERROR",
          "message": "foreign key mismatch - \"child\" referencing \"parent\""
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": []
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": true
      },
      "guard_accepts": null,
      "decision": "commit",
      "after_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "error",
          "code": 1,
          "name": "SQLITE_ERROR",
          "message": "foreign key mismatch - \"child\" referencing \"parent\""
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": []
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "backup_completed": true,
      "reopened": {
        "source": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "delete"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "error",
            "code": 1,
            "name": "SQLITE_ERROR",
            "message": "foreign key mismatch - \"child\" referencing \"parent\""
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": []
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        },
        "backup": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "delete"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "error",
            "code": 1,
            "name": "SQLITE_ERROR",
            "message": "foreign key mismatch - \"child\" referencing \"parent\""
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": []
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        }
      },
      "artifacts": {
        "source": {
          "file": "delete-external-drop-index-source.sqlite",
          "sha256": "fa53a4b19af640faf1df2fdc648dd2c1f6648253fa43ab2518cb5f104317f129",
          "bytes": 16384
        },
        "backup": {
          "file": "delete-external-drop-index-backup.sqlite",
          "sha256": "16917e43c6e1a8331b934d1a068359cedbbd3a8ebd2a17dcc57a4e318f156786",
          "bytes": 16384
        }
      },
      "read_only_hashes_unchanged": true
    },
    {
      "case": "external-drop-both",
      "source_mode": "DELETE",
      "index_origin": "external",
      "initial": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "stages": [
        {
          "sql": "DROP INDEX parent_key",
          "outcome": {
            "status": "ok",
            "rows": []
          },
          "state": {
            "foreign_keys": {
              "status": "ok",
              "rows": [
                [
                  1
                ]
              ]
            },
            "journal_mode": {
              "status": "ok",
              "rows": [
                [
                  "delete"
                ]
              ]
            },
            "integrity_check": {
              "status": "ok",
              "rows": [
                [
                  "ok"
                ]
              ]
            },
            "foreign_key_check": {
              "status": "error",
              "code": 1,
              "name": "SQLITE_ERROR",
              "message": "foreign key mismatch - \"child\" referencing \"parent\""
            },
            "schema": {
              "status": "ok",
              "rows": [
                [
                  "table",
                  "child",
                  "child",
                  "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
                ],
                [
                  "table",
                  "parent",
                  "parent",
                  "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
                ]
              ]
            },
            "parent_indexes": {
              "status": "ok",
              "rows": []
            },
            "parent_rows": {
              "status": "ok",
              "rows": [
                [
                  1,
                  "volume-A"
                ]
              ]
            },
            "child_rows": {
              "status": "ok",
              "rows": [
                [
                  10,
                  1
                ]
              ]
            },
            "in_transaction": true
          }
        },
        {
          "sql": "DROP TABLE parent",
          "outcome": {
            "status": "ok",
            "rows": []
          },
          "state": {
            "foreign_keys": {
              "status": "ok",
              "rows": [
                [
                  1
                ]
              ]
            },
            "journal_mode": {
              "status": "ok",
              "rows": [
                [
                  "delete"
                ]
              ]
            },
            "integrity_check": {
              "status": "ok",
              "rows": [
                [
                  "ok"
                ]
              ]
            },
            "foreign_key_check": {
              "status": "ok",
              "rows": [
                [
                  "child",
                  10,
                  "parent",
                  0
                ]
              ]
            },
            "schema": {
              "status": "ok",
              "rows": [
                [
                  "table",
                  "child",
                  "child",
                  "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
                ]
              ]
            },
            "parent_indexes": {
              "status": "ok",
              "rows": []
            },
            "parent_rows": {
              "status": "error",
              "code": 1,
              "name": "SQLITE_ERROR",
              "message": "no such table: parent"
            },
            "child_rows": {
              "status": "ok",
              "rows": [
                [
                  10,
                  1
                ]
              ]
            },
            "in_transaction": true
          }
        }
      ],
      "before_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": [
            [
              "child",
              10,
              "parent",
              0
            ]
          ]
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": []
        },
        "parent_rows": {
          "status": "error",
          "code": 1,
          "name": "SQLITE_ERROR",
          "message": "no such table: parent"
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": true
      },
      "guard_accepts": null,
      "decision": "commit",
      "after_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": [
            [
              "child",
              10,
              "parent",
              0
            ]
          ]
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": []
        },
        "parent_rows": {
          "status": "error",
          "code": 1,
          "name": "SQLITE_ERROR",
          "message": "no such table: parent"
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "backup_completed": true,
      "reopened": {
        "source": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "delete"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": [
              [
                "child",
                10,
                "parent",
                0
              ]
            ]
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": []
          },
          "parent_rows": {
            "status": "error",
            "code": 1,
            "name": "SQLITE_ERROR",
            "message": "no such table: parent"
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        },
        "backup": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "delete"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": [
              [
                "child",
                10,
                "parent",
                0
              ]
            ]
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": []
          },
          "parent_rows": {
            "status": "error",
            "code": 1,
            "name": "SQLITE_ERROR",
            "message": "no such table: parent"
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        }
      },
      "artifacts": {
        "source": {
          "file": "delete-external-drop-both-source.sqlite",
          "sha256": "f594b19ecf53d7ef612c163c822ebb4c4c811e103047604a0bdd071cbe730d00",
          "bytes": 16384
        },
        "backup": {
          "file": "delete-external-drop-both-backup.sqlite",
          "sha256": "44c2a9ba172207155cdfa72f421e357afca124c1dd2d37cc5fbb85adac62bd02",
          "bytes": 16384
        }
      },
      "read_only_hashes_unchanged": true
    },
    {
      "case": "external-drop-parent",
      "source_mode": "DELETE",
      "index_origin": "external",
      "initial": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "stages": [
        {
          "sql": "DROP TABLE parent",
          "outcome": {
            "status": "error",
            "code": 787,
            "name": "SQLITE_CONSTRAINT_FOREIGNKEY",
            "message": "FOREIGN KEY constraint failed"
          },
          "state": {
            "foreign_keys": {
              "status": "ok",
              "rows": [
                [
                  1
                ]
              ]
            },
            "journal_mode": {
              "status": "ok",
              "rows": [
                [
                  "delete"
                ]
              ]
            },
            "integrity_check": {
              "status": "ok",
              "rows": [
                [
                  "ok"
                ]
              ]
            },
            "foreign_key_check": {
              "status": "ok",
              "rows": []
            },
            "schema": {
              "status": "ok",
              "rows": [
                [
                  "index",
                  "parent_key",
                  "parent",
                  "CREATE UNIQUE INDEX parent_key ON parent(id)"
                ],
                [
                  "table",
                  "child",
                  "child",
                  "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
                ],
                [
                  "table",
                  "parent",
                  "parent",
                  "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
                ]
              ]
            },
            "parent_indexes": {
              "status": "ok",
              "rows": [
                [
                  0,
                  "parent_key",
                  1,
                  "c",
                  0
                ]
              ]
            },
            "parent_rows": {
              "status": "ok",
              "rows": [
                [
                  1,
                  "volume-A"
                ]
              ]
            },
            "child_rows": {
              "status": "ok",
              "rows": [
                [
                  10,
                  1
                ]
              ]
            },
            "in_transaction": true
          }
        }
      ],
      "before_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": true
      },
      "guard_accepts": null,
      "decision": "rollback-statement-error",
      "after_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "backup_completed": true,
      "reopened": {
        "source": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "delete"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "parent_key",
                "parent",
                "CREATE UNIQUE INDEX parent_key ON parent(id)"
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "parent_key",
                1,
                "c",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        },
        "backup": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "delete"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "parent_key",
                "parent",
                "CREATE UNIQUE INDEX parent_key ON parent(id)"
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "parent_key",
                1,
                "c",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        }
      },
      "artifacts": {
        "source": {
          "file": "delete-external-drop-parent-source.sqlite",
          "sha256": "a900e5bab73a692c696fb38875a5fb75e0e962ff84aac8c06c83843c71511180",
          "bytes": 16384
        },
        "backup": {
          "file": "delete-external-drop-parent-backup.sqlite",
          "sha256": "264399205e97bdf8bfbff1ad8aa8673dab0ebe4870b18b19c18e530ddde37b97",
          "bytes": 16384
        }
      },
      "read_only_hashes_unchanged": true
    },
    {
      "case": "inline-drop-parent",
      "source_mode": "DELETE",
      "index_origin": "inline",
      "initial": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "sqlite_autoindex_parent_1",
              "parent",
              null
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER UNIQUE,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "sqlite_autoindex_parent_1",
              1,
              "u",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "stages": [
        {
          "sql": "DROP TABLE parent",
          "outcome": {
            "status": "error",
            "code": 787,
            "name": "SQLITE_CONSTRAINT_FOREIGNKEY",
            "message": "FOREIGN KEY constraint failed"
          },
          "state": {
            "foreign_keys": {
              "status": "ok",
              "rows": [
                [
                  1
                ]
              ]
            },
            "journal_mode": {
              "status": "ok",
              "rows": [
                [
                  "delete"
                ]
              ]
            },
            "integrity_check": {
              "status": "ok",
              "rows": [
                [
                  "ok"
                ]
              ]
            },
            "foreign_key_check": {
              "status": "ok",
              "rows": []
            },
            "schema": {
              "status": "ok",
              "rows": [
                [
                  "index",
                  "sqlite_autoindex_parent_1",
                  "parent",
                  null
                ],
                [
                  "table",
                  "child",
                  "child",
                  "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
                ],
                [
                  "table",
                  "parent",
                  "parent",
                  "CREATE TABLE parent(id INTEGER UNIQUE,label TEXT NOT NULL)"
                ]
              ]
            },
            "parent_indexes": {
              "status": "ok",
              "rows": [
                [
                  0,
                  "sqlite_autoindex_parent_1",
                  1,
                  "u",
                  0
                ]
              ]
            },
            "parent_rows": {
              "status": "ok",
              "rows": [
                [
                  1,
                  "volume-A"
                ]
              ]
            },
            "child_rows": {
              "status": "ok",
              "rows": [
                [
                  10,
                  1
                ]
              ]
            },
            "in_transaction": true
          }
        }
      ],
      "before_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "sqlite_autoindex_parent_1",
              "parent",
              null
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER UNIQUE,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "sqlite_autoindex_parent_1",
              1,
              "u",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": true
      },
      "guard_accepts": null,
      "decision": "rollback-statement-error",
      "after_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "sqlite_autoindex_parent_1",
              "parent",
              null
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER UNIQUE,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "sqlite_autoindex_parent_1",
              1,
              "u",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "backup_completed": true,
      "reopened": {
        "source": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "delete"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "sqlite_autoindex_parent_1",
                "parent",
                null
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER UNIQUE,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "sqlite_autoindex_parent_1",
                1,
                "u",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        },
        "backup": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "delete"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "sqlite_autoindex_parent_1",
                "parent",
                null
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER UNIQUE,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "sqlite_autoindex_parent_1",
                1,
                "u",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        }
      },
      "artifacts": {
        "source": {
          "file": "delete-inline-drop-parent-source.sqlite",
          "sha256": "470914c38dfab3a2b248ec242bb0064508374058409ef408f08924d16f718868",
          "bytes": 16384
        },
        "backup": {
          "file": "delete-inline-drop-parent-backup.sqlite",
          "sha256": "e39dc664ec86c3e9b96c021d730a4f53cba6a29b330b3730ee7691c82bed7b31",
          "bytes": 16384
        }
      },
      "read_only_hashes_unchanged": true
    },
    {
      "case": "external-rebuild-index",
      "source_mode": "DELETE",
      "index_origin": "external",
      "initial": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "stages": [
        {
          "sql": "DROP INDEX parent_key",
          "outcome": {
            "status": "ok",
            "rows": []
          },
          "state": {
            "foreign_keys": {
              "status": "ok",
              "rows": [
                [
                  1
                ]
              ]
            },
            "journal_mode": {
              "status": "ok",
              "rows": [
                [
                  "delete"
                ]
              ]
            },
            "integrity_check": {
              "status": "ok",
              "rows": [
                [
                  "ok"
                ]
              ]
            },
            "foreign_key_check": {
              "status": "error",
              "code": 1,
              "name": "SQLITE_ERROR",
              "message": "foreign key mismatch - \"child\" referencing \"parent\""
            },
            "schema": {
              "status": "ok",
              "rows": [
                [
                  "table",
                  "child",
                  "child",
                  "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
                ],
                [
                  "table",
                  "parent",
                  "parent",
                  "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
                ]
              ]
            },
            "parent_indexes": {
              "status": "ok",
              "rows": []
            },
            "parent_rows": {
              "status": "ok",
              "rows": [
                [
                  1,
                  "volume-A"
                ]
              ]
            },
            "child_rows": {
              "status": "ok",
              "rows": [
                [
                  10,
                  1
                ]
              ]
            },
            "in_transaction": true
          }
        },
        {
          "sql": "CREATE UNIQUE INDEX parent_key ON parent(id)",
          "outcome": {
            "status": "ok",
            "rows": []
          },
          "state": {
            "foreign_keys": {
              "status": "ok",
              "rows": [
                [
                  1
                ]
              ]
            },
            "journal_mode": {
              "status": "ok",
              "rows": [
                [
                  "delete"
                ]
              ]
            },
            "integrity_check": {
              "status": "ok",
              "rows": [
                [
                  "ok"
                ]
              ]
            },
            "foreign_key_check": {
              "status": "ok",
              "rows": []
            },
            "schema": {
              "status": "ok",
              "rows": [
                [
                  "index",
                  "parent_key",
                  "parent",
                  "CREATE UNIQUE INDEX parent_key ON parent(id)"
                ],
                [
                  "table",
                  "child",
                  "child",
                  "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
                ],
                [
                  "table",
                  "parent",
                  "parent",
                  "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
                ]
              ]
            },
            "parent_indexes": {
              "status": "ok",
              "rows": [
                [
                  0,
                  "parent_key",
                  1,
                  "c",
                  0
                ]
              ]
            },
            "parent_rows": {
              "status": "ok",
              "rows": [
                [
                  1,
                  "volume-A"
                ]
              ]
            },
            "child_rows": {
              "status": "ok",
              "rows": [
                [
                  10,
                  1
                ]
              ]
            },
            "in_transaction": true
          }
        }
      ],
      "before_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": true
      },
      "guard_accepts": true,
      "decision": "commit",
      "after_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "backup_completed": true,
      "reopened": {
        "source": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "delete"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "parent_key",
                "parent",
                "CREATE UNIQUE INDEX parent_key ON parent(id)"
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "parent_key",
                1,
                "c",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        },
        "backup": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "delete"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "parent_key",
                "parent",
                "CREATE UNIQUE INDEX parent_key ON parent(id)"
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "parent_key",
                1,
                "c",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        }
      },
      "artifacts": {
        "source": {
          "file": "delete-external-rebuild-index-source.sqlite",
          "sha256": "d76f38611890562a5cb09399be34666bd241bc8c2b0372ef2ca4a1c9ace099a1",
          "bytes": 16384
        },
        "backup": {
          "file": "delete-external-rebuild-index-backup.sqlite",
          "sha256": "b889ec8aaaca05ce4accc920e4d0dfe1446b87a1784791b9a9a1a7e6ee948e6b",
          "bytes": 16384
        }
      },
      "read_only_hashes_unchanged": true
    },
    {
      "case": "guard-drop-index",
      "source_mode": "DELETE",
      "index_origin": "external",
      "initial": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "stages": [
        {
          "sql": "DROP INDEX parent_key",
          "outcome": {
            "status": "ok",
            "rows": []
          },
          "state": {
            "foreign_keys": {
              "status": "ok",
              "rows": [
                [
                  1
                ]
              ]
            },
            "journal_mode": {
              "status": "ok",
              "rows": [
                [
                  "delete"
                ]
              ]
            },
            "integrity_check": {
              "status": "ok",
              "rows": [
                [
                  "ok"
                ]
              ]
            },
            "foreign_key_check": {
              "status": "error",
              "code": 1,
              "name": "SQLITE_ERROR",
              "message": "foreign key mismatch - \"child\" referencing \"parent\""
            },
            "schema": {
              "status": "ok",
              "rows": [
                [
                  "table",
                  "child",
                  "child",
                  "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
                ],
                [
                  "table",
                  "parent",
                  "parent",
                  "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
                ]
              ]
            },
            "parent_indexes": {
              "status": "ok",
              "rows": []
            },
            "parent_rows": {
              "status": "ok",
              "rows": [
                [
                  1,
                  "volume-A"
                ]
              ]
            },
            "child_rows": {
              "status": "ok",
              "rows": [
                [
                  10,
                  1
                ]
              ]
            },
            "in_transaction": true
          }
        }
      ],
      "before_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "error",
          "code": 1,
          "name": "SQLITE_ERROR",
          "message": "foreign key mismatch - \"child\" referencing \"parent\""
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": []
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": true
      },
      "guard_accepts": false,
      "decision": "rollback-guard",
      "after_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "backup_completed": true,
      "reopened": {
        "source": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "delete"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "parent_key",
                "parent",
                "CREATE UNIQUE INDEX parent_key ON parent(id)"
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "parent_key",
                1,
                "c",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        },
        "backup": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "delete"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "parent_key",
                "parent",
                "CREATE UNIQUE INDEX parent_key ON parent(id)"
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "parent_key",
                1,
                "c",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        }
      },
      "artifacts": {
        "source": {
          "file": "delete-guard-drop-index-source.sqlite",
          "sha256": "a900e5bab73a692c696fb38875a5fb75e0e962ff84aac8c06c83843c71511180",
          "bytes": 16384
        },
        "backup": {
          "file": "delete-guard-drop-index-backup.sqlite",
          "sha256": "264399205e97bdf8bfbff1ad8aa8673dab0ebe4870b18b19c18e530ddde37b97",
          "bytes": 16384
        }
      },
      "read_only_hashes_unchanged": true
    },
    {
      "case": "guard-drop-both",
      "source_mode": "DELETE",
      "index_origin": "external",
      "initial": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "stages": [
        {
          "sql": "DROP INDEX parent_key",
          "outcome": {
            "status": "ok",
            "rows": []
          },
          "state": {
            "foreign_keys": {
              "status": "ok",
              "rows": [
                [
                  1
                ]
              ]
            },
            "journal_mode": {
              "status": "ok",
              "rows": [
                [
                  "delete"
                ]
              ]
            },
            "integrity_check": {
              "status": "ok",
              "rows": [
                [
                  "ok"
                ]
              ]
            },
            "foreign_key_check": {
              "status": "error",
              "code": 1,
              "name": "SQLITE_ERROR",
              "message": "foreign key mismatch - \"child\" referencing \"parent\""
            },
            "schema": {
              "status": "ok",
              "rows": [
                [
                  "table",
                  "child",
                  "child",
                  "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
                ],
                [
                  "table",
                  "parent",
                  "parent",
                  "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
                ]
              ]
            },
            "parent_indexes": {
              "status": "ok",
              "rows": []
            },
            "parent_rows": {
              "status": "ok",
              "rows": [
                [
                  1,
                  "volume-A"
                ]
              ]
            },
            "child_rows": {
              "status": "ok",
              "rows": [
                [
                  10,
                  1
                ]
              ]
            },
            "in_transaction": true
          }
        },
        {
          "sql": "DROP TABLE parent",
          "outcome": {
            "status": "ok",
            "rows": []
          },
          "state": {
            "foreign_keys": {
              "status": "ok",
              "rows": [
                [
                  1
                ]
              ]
            },
            "journal_mode": {
              "status": "ok",
              "rows": [
                [
                  "delete"
                ]
              ]
            },
            "integrity_check": {
              "status": "ok",
              "rows": [
                [
                  "ok"
                ]
              ]
            },
            "foreign_key_check": {
              "status": "ok",
              "rows": [
                [
                  "child",
                  10,
                  "parent",
                  0
                ]
              ]
            },
            "schema": {
              "status": "ok",
              "rows": [
                [
                  "table",
                  "child",
                  "child",
                  "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
                ]
              ]
            },
            "parent_indexes": {
              "status": "ok",
              "rows": []
            },
            "parent_rows": {
              "status": "error",
              "code": 1,
              "name": "SQLITE_ERROR",
              "message": "no such table: parent"
            },
            "child_rows": {
              "status": "ok",
              "rows": [
                [
                  10,
                  1
                ]
              ]
            },
            "in_transaction": true
          }
        }
      ],
      "before_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": [
            [
              "child",
              10,
              "parent",
              0
            ]
          ]
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": []
        },
        "parent_rows": {
          "status": "error",
          "code": 1,
          "name": "SQLITE_ERROR",
          "message": "no such table: parent"
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": true
      },
      "guard_accepts": false,
      "decision": "rollback-guard",
      "after_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "delete"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "backup_completed": true,
      "reopened": {
        "source": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "delete"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "parent_key",
                "parent",
                "CREATE UNIQUE INDEX parent_key ON parent(id)"
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "parent_key",
                1,
                "c",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        },
        "backup": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "delete"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "parent_key",
                "parent",
                "CREATE UNIQUE INDEX parent_key ON parent(id)"
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "parent_key",
                1,
                "c",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        }
      },
      "artifacts": {
        "source": {
          "file": "delete-guard-drop-both-source.sqlite",
          "sha256": "a900e5bab73a692c696fb38875a5fb75e0e962ff84aac8c06c83843c71511180",
          "bytes": 16384
        },
        "backup": {
          "file": "delete-guard-drop-both-backup.sqlite",
          "sha256": "264399205e97bdf8bfbff1ad8aa8673dab0ebe4870b18b19c18e530ddde37b97",
          "bytes": 16384
        }
      },
      "read_only_hashes_unchanged": true
    },
    {
      "case": "external-baseline",
      "source_mode": "WAL",
      "index_origin": "external",
      "initial": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "stages": [],
      "before_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": true
      },
      "guard_accepts": null,
      "decision": "commit",
      "after_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "backup_completed": true,
      "reopened": {
        "source": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "wal"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "parent_key",
                "parent",
                "CREATE UNIQUE INDEX parent_key ON parent(id)"
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "parent_key",
                1,
                "c",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        },
        "backup": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "wal"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "parent_key",
                "parent",
                "CREATE UNIQUE INDEX parent_key ON parent(id)"
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "parent_key",
                1,
                "c",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        }
      },
      "artifacts": {
        "source": {
          "file": "wal-external-baseline-source.sqlite",
          "sha256": "c990f20da0ccb532dece7cc7a0f7c6d63374d1482a873ec00190433e7dd359d2",
          "bytes": 16384
        },
        "backup": {
          "file": "wal-external-baseline-backup.sqlite",
          "sha256": "b3c6333a61b6b07bcf06a25a8a18d9ea91e04097be3632ee8ed51abb22a44bbf",
          "bytes": 16384
        }
      },
      "read_only_hashes_unchanged": true
    },
    {
      "case": "external-drop-index",
      "source_mode": "WAL",
      "index_origin": "external",
      "initial": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "stages": [
        {
          "sql": "DROP INDEX parent_key",
          "outcome": {
            "status": "ok",
            "rows": []
          },
          "state": {
            "foreign_keys": {
              "status": "ok",
              "rows": [
                [
                  1
                ]
              ]
            },
            "journal_mode": {
              "status": "ok",
              "rows": [
                [
                  "wal"
                ]
              ]
            },
            "integrity_check": {
              "status": "ok",
              "rows": [
                [
                  "ok"
                ]
              ]
            },
            "foreign_key_check": {
              "status": "error",
              "code": 1,
              "name": "SQLITE_ERROR",
              "message": "foreign key mismatch - \"child\" referencing \"parent\""
            },
            "schema": {
              "status": "ok",
              "rows": [
                [
                  "table",
                  "child",
                  "child",
                  "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
                ],
                [
                  "table",
                  "parent",
                  "parent",
                  "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
                ]
              ]
            },
            "parent_indexes": {
              "status": "ok",
              "rows": []
            },
            "parent_rows": {
              "status": "ok",
              "rows": [
                [
                  1,
                  "volume-A"
                ]
              ]
            },
            "child_rows": {
              "status": "ok",
              "rows": [
                [
                  10,
                  1
                ]
              ]
            },
            "in_transaction": true
          }
        }
      ],
      "before_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "error",
          "code": 1,
          "name": "SQLITE_ERROR",
          "message": "foreign key mismatch - \"child\" referencing \"parent\""
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": []
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": true
      },
      "guard_accepts": null,
      "decision": "commit",
      "after_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "error",
          "code": 1,
          "name": "SQLITE_ERROR",
          "message": "foreign key mismatch - \"child\" referencing \"parent\""
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": []
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "backup_completed": true,
      "reopened": {
        "source": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "wal"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "error",
            "code": 1,
            "name": "SQLITE_ERROR",
            "message": "foreign key mismatch - \"child\" referencing \"parent\""
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": []
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        },
        "backup": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "wal"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "error",
            "code": 1,
            "name": "SQLITE_ERROR",
            "message": "foreign key mismatch - \"child\" referencing \"parent\""
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": []
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        }
      },
      "artifacts": {
        "source": {
          "file": "wal-external-drop-index-source.sqlite",
          "sha256": "4b5798c26863675c996a4702fef7d46e88fe3580612a93f6032d0090524dfec1",
          "bytes": 16384
        },
        "backup": {
          "file": "wal-external-drop-index-backup.sqlite",
          "sha256": "aa2b30832c76f64bee5da50d40911cdfaa27e62198d65812087ee23af453004c",
          "bytes": 16384
        }
      },
      "read_only_hashes_unchanged": true
    },
    {
      "case": "external-drop-both",
      "source_mode": "WAL",
      "index_origin": "external",
      "initial": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "stages": [
        {
          "sql": "DROP INDEX parent_key",
          "outcome": {
            "status": "ok",
            "rows": []
          },
          "state": {
            "foreign_keys": {
              "status": "ok",
              "rows": [
                [
                  1
                ]
              ]
            },
            "journal_mode": {
              "status": "ok",
              "rows": [
                [
                  "wal"
                ]
              ]
            },
            "integrity_check": {
              "status": "ok",
              "rows": [
                [
                  "ok"
                ]
              ]
            },
            "foreign_key_check": {
              "status": "error",
              "code": 1,
              "name": "SQLITE_ERROR",
              "message": "foreign key mismatch - \"child\" referencing \"parent\""
            },
            "schema": {
              "status": "ok",
              "rows": [
                [
                  "table",
                  "child",
                  "child",
                  "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
                ],
                [
                  "table",
                  "parent",
                  "parent",
                  "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
                ]
              ]
            },
            "parent_indexes": {
              "status": "ok",
              "rows": []
            },
            "parent_rows": {
              "status": "ok",
              "rows": [
                [
                  1,
                  "volume-A"
                ]
              ]
            },
            "child_rows": {
              "status": "ok",
              "rows": [
                [
                  10,
                  1
                ]
              ]
            },
            "in_transaction": true
          }
        },
        {
          "sql": "DROP TABLE parent",
          "outcome": {
            "status": "ok",
            "rows": []
          },
          "state": {
            "foreign_keys": {
              "status": "ok",
              "rows": [
                [
                  1
                ]
              ]
            },
            "journal_mode": {
              "status": "ok",
              "rows": [
                [
                  "wal"
                ]
              ]
            },
            "integrity_check": {
              "status": "ok",
              "rows": [
                [
                  "ok"
                ]
              ]
            },
            "foreign_key_check": {
              "status": "ok",
              "rows": [
                [
                  "child",
                  10,
                  "parent",
                  0
                ]
              ]
            },
            "schema": {
              "status": "ok",
              "rows": [
                [
                  "table",
                  "child",
                  "child",
                  "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
                ]
              ]
            },
            "parent_indexes": {
              "status": "ok",
              "rows": []
            },
            "parent_rows": {
              "status": "error",
              "code": 1,
              "name": "SQLITE_ERROR",
              "message": "no such table: parent"
            },
            "child_rows": {
              "status": "ok",
              "rows": [
                [
                  10,
                  1
                ]
              ]
            },
            "in_transaction": true
          }
        }
      ],
      "before_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": [
            [
              "child",
              10,
              "parent",
              0
            ]
          ]
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": []
        },
        "parent_rows": {
          "status": "error",
          "code": 1,
          "name": "SQLITE_ERROR",
          "message": "no such table: parent"
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": true
      },
      "guard_accepts": null,
      "decision": "commit",
      "after_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": [
            [
              "child",
              10,
              "parent",
              0
            ]
          ]
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": []
        },
        "parent_rows": {
          "status": "error",
          "code": 1,
          "name": "SQLITE_ERROR",
          "message": "no such table: parent"
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "backup_completed": true,
      "reopened": {
        "source": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "wal"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": [
              [
                "child",
                10,
                "parent",
                0
              ]
            ]
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": []
          },
          "parent_rows": {
            "status": "error",
            "code": 1,
            "name": "SQLITE_ERROR",
            "message": "no such table: parent"
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        },
        "backup": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "wal"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": [
              [
                "child",
                10,
                "parent",
                0
              ]
            ]
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": []
          },
          "parent_rows": {
            "status": "error",
            "code": 1,
            "name": "SQLITE_ERROR",
            "message": "no such table: parent"
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        }
      },
      "artifacts": {
        "source": {
          "file": "wal-external-drop-both-source.sqlite",
          "sha256": "a7023d15cf06f9bbf7dd6e90a714dcfb73037ac7563f1cb1461f3913b2c28c28",
          "bytes": 16384
        },
        "backup": {
          "file": "wal-external-drop-both-backup.sqlite",
          "sha256": "e3affbc8179f021d83252375ff3a962fbbbd37b7a582e1dc786bd0996a12d370",
          "bytes": 16384
        }
      },
      "read_only_hashes_unchanged": true
    },
    {
      "case": "external-drop-parent",
      "source_mode": "WAL",
      "index_origin": "external",
      "initial": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "stages": [
        {
          "sql": "DROP TABLE parent",
          "outcome": {
            "status": "error",
            "code": 787,
            "name": "SQLITE_CONSTRAINT_FOREIGNKEY",
            "message": "FOREIGN KEY constraint failed"
          },
          "state": {
            "foreign_keys": {
              "status": "ok",
              "rows": [
                [
                  1
                ]
              ]
            },
            "journal_mode": {
              "status": "ok",
              "rows": [
                [
                  "wal"
                ]
              ]
            },
            "integrity_check": {
              "status": "ok",
              "rows": [
                [
                  "ok"
                ]
              ]
            },
            "foreign_key_check": {
              "status": "ok",
              "rows": []
            },
            "schema": {
              "status": "ok",
              "rows": [
                [
                  "index",
                  "parent_key",
                  "parent",
                  "CREATE UNIQUE INDEX parent_key ON parent(id)"
                ],
                [
                  "table",
                  "child",
                  "child",
                  "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
                ],
                [
                  "table",
                  "parent",
                  "parent",
                  "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
                ]
              ]
            },
            "parent_indexes": {
              "status": "ok",
              "rows": [
                [
                  0,
                  "parent_key",
                  1,
                  "c",
                  0
                ]
              ]
            },
            "parent_rows": {
              "status": "ok",
              "rows": [
                [
                  1,
                  "volume-A"
                ]
              ]
            },
            "child_rows": {
              "status": "ok",
              "rows": [
                [
                  10,
                  1
                ]
              ]
            },
            "in_transaction": true
          }
        }
      ],
      "before_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": true
      },
      "guard_accepts": null,
      "decision": "rollback-statement-error",
      "after_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "backup_completed": true,
      "reopened": {
        "source": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "wal"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "parent_key",
                "parent",
                "CREATE UNIQUE INDEX parent_key ON parent(id)"
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "parent_key",
                1,
                "c",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        },
        "backup": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "wal"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "parent_key",
                "parent",
                "CREATE UNIQUE INDEX parent_key ON parent(id)"
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "parent_key",
                1,
                "c",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        }
      },
      "artifacts": {
        "source": {
          "file": "wal-external-drop-parent-source.sqlite",
          "sha256": "c990f20da0ccb532dece7cc7a0f7c6d63374d1482a873ec00190433e7dd359d2",
          "bytes": 16384
        },
        "backup": {
          "file": "wal-external-drop-parent-backup.sqlite",
          "sha256": "b3c6333a61b6b07bcf06a25a8a18d9ea91e04097be3632ee8ed51abb22a44bbf",
          "bytes": 16384
        }
      },
      "read_only_hashes_unchanged": true
    },
    {
      "case": "inline-drop-parent",
      "source_mode": "WAL",
      "index_origin": "inline",
      "initial": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "sqlite_autoindex_parent_1",
              "parent",
              null
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER UNIQUE,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "sqlite_autoindex_parent_1",
              1,
              "u",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "stages": [
        {
          "sql": "DROP TABLE parent",
          "outcome": {
            "status": "error",
            "code": 787,
            "name": "SQLITE_CONSTRAINT_FOREIGNKEY",
            "message": "FOREIGN KEY constraint failed"
          },
          "state": {
            "foreign_keys": {
              "status": "ok",
              "rows": [
                [
                  1
                ]
              ]
            },
            "journal_mode": {
              "status": "ok",
              "rows": [
                [
                  "wal"
                ]
              ]
            },
            "integrity_check": {
              "status": "ok",
              "rows": [
                [
                  "ok"
                ]
              ]
            },
            "foreign_key_check": {
              "status": "ok",
              "rows": []
            },
            "schema": {
              "status": "ok",
              "rows": [
                [
                  "index",
                  "sqlite_autoindex_parent_1",
                  "parent",
                  null
                ],
                [
                  "table",
                  "child",
                  "child",
                  "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
                ],
                [
                  "table",
                  "parent",
                  "parent",
                  "CREATE TABLE parent(id INTEGER UNIQUE,label TEXT NOT NULL)"
                ]
              ]
            },
            "parent_indexes": {
              "status": "ok",
              "rows": [
                [
                  0,
                  "sqlite_autoindex_parent_1",
                  1,
                  "u",
                  0
                ]
              ]
            },
            "parent_rows": {
              "status": "ok",
              "rows": [
                [
                  1,
                  "volume-A"
                ]
              ]
            },
            "child_rows": {
              "status": "ok",
              "rows": [
                [
                  10,
                  1
                ]
              ]
            },
            "in_transaction": true
          }
        }
      ],
      "before_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "sqlite_autoindex_parent_1",
              "parent",
              null
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER UNIQUE,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "sqlite_autoindex_parent_1",
              1,
              "u",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": true
      },
      "guard_accepts": null,
      "decision": "rollback-statement-error",
      "after_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "sqlite_autoindex_parent_1",
              "parent",
              null
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER UNIQUE,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "sqlite_autoindex_parent_1",
              1,
              "u",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "backup_completed": true,
      "reopened": {
        "source": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "wal"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "sqlite_autoindex_parent_1",
                "parent",
                null
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER UNIQUE,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "sqlite_autoindex_parent_1",
                1,
                "u",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        },
        "backup": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "wal"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "sqlite_autoindex_parent_1",
                "parent",
                null
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER UNIQUE,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "sqlite_autoindex_parent_1",
                1,
                "u",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        }
      },
      "artifacts": {
        "source": {
          "file": "wal-inline-drop-parent-source.sqlite",
          "sha256": "ab623c39c317f2065a143b55620de98606b98300fedd33f845d5485b1b8d2aac",
          "bytes": 16384
        },
        "backup": {
          "file": "wal-inline-drop-parent-backup.sqlite",
          "sha256": "2af978aa8171fcbad869fe681a9c42b0ff9608c9f36b7044fabc95b584d79afb",
          "bytes": 16384
        }
      },
      "read_only_hashes_unchanged": true
    },
    {
      "case": "external-rebuild-index",
      "source_mode": "WAL",
      "index_origin": "external",
      "initial": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "stages": [
        {
          "sql": "DROP INDEX parent_key",
          "outcome": {
            "status": "ok",
            "rows": []
          },
          "state": {
            "foreign_keys": {
              "status": "ok",
              "rows": [
                [
                  1
                ]
              ]
            },
            "journal_mode": {
              "status": "ok",
              "rows": [
                [
                  "wal"
                ]
              ]
            },
            "integrity_check": {
              "status": "ok",
              "rows": [
                [
                  "ok"
                ]
              ]
            },
            "foreign_key_check": {
              "status": "error",
              "code": 1,
              "name": "SQLITE_ERROR",
              "message": "foreign key mismatch - \"child\" referencing \"parent\""
            },
            "schema": {
              "status": "ok",
              "rows": [
                [
                  "table",
                  "child",
                  "child",
                  "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
                ],
                [
                  "table",
                  "parent",
                  "parent",
                  "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
                ]
              ]
            },
            "parent_indexes": {
              "status": "ok",
              "rows": []
            },
            "parent_rows": {
              "status": "ok",
              "rows": [
                [
                  1,
                  "volume-A"
                ]
              ]
            },
            "child_rows": {
              "status": "ok",
              "rows": [
                [
                  10,
                  1
                ]
              ]
            },
            "in_transaction": true
          }
        },
        {
          "sql": "CREATE UNIQUE INDEX parent_key ON parent(id)",
          "outcome": {
            "status": "ok",
            "rows": []
          },
          "state": {
            "foreign_keys": {
              "status": "ok",
              "rows": [
                [
                  1
                ]
              ]
            },
            "journal_mode": {
              "status": "ok",
              "rows": [
                [
                  "wal"
                ]
              ]
            },
            "integrity_check": {
              "status": "ok",
              "rows": [
                [
                  "ok"
                ]
              ]
            },
            "foreign_key_check": {
              "status": "ok",
              "rows": []
            },
            "schema": {
              "status": "ok",
              "rows": [
                [
                  "index",
                  "parent_key",
                  "parent",
                  "CREATE UNIQUE INDEX parent_key ON parent(id)"
                ],
                [
                  "table",
                  "child",
                  "child",
                  "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
                ],
                [
                  "table",
                  "parent",
                  "parent",
                  "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
                ]
              ]
            },
            "parent_indexes": {
              "status": "ok",
              "rows": [
                [
                  0,
                  "parent_key",
                  1,
                  "c",
                  0
                ]
              ]
            },
            "parent_rows": {
              "status": "ok",
              "rows": [
                [
                  1,
                  "volume-A"
                ]
              ]
            },
            "child_rows": {
              "status": "ok",
              "rows": [
                [
                  10,
                  1
                ]
              ]
            },
            "in_transaction": true
          }
        }
      ],
      "before_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": true
      },
      "guard_accepts": true,
      "decision": "commit",
      "after_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "backup_completed": true,
      "reopened": {
        "source": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "wal"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "parent_key",
                "parent",
                "CREATE UNIQUE INDEX parent_key ON parent(id)"
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "parent_key",
                1,
                "c",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        },
        "backup": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "wal"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "parent_key",
                "parent",
                "CREATE UNIQUE INDEX parent_key ON parent(id)"
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "parent_key",
                1,
                "c",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        }
      },
      "artifacts": {
        "source": {
          "file": "wal-external-rebuild-index-source.sqlite",
          "sha256": "34e71feba11b792a090b558a7c388ee01c4bfd91ccda330002ee698921e2faf3",
          "bytes": 16384
        },
        "backup": {
          "file": "wal-external-rebuild-index-backup.sqlite",
          "sha256": "84cbbffe35258edf6f155608b4ef82405f008bc111454db1cac3cd9cfaf3d051",
          "bytes": 16384
        }
      },
      "read_only_hashes_unchanged": true
    },
    {
      "case": "guard-drop-index",
      "source_mode": "WAL",
      "index_origin": "external",
      "initial": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "stages": [
        {
          "sql": "DROP INDEX parent_key",
          "outcome": {
            "status": "ok",
            "rows": []
          },
          "state": {
            "foreign_keys": {
              "status": "ok",
              "rows": [
                [
                  1
                ]
              ]
            },
            "journal_mode": {
              "status": "ok",
              "rows": [
                [
                  "wal"
                ]
              ]
            },
            "integrity_check": {
              "status": "ok",
              "rows": [
                [
                  "ok"
                ]
              ]
            },
            "foreign_key_check": {
              "status": "error",
              "code": 1,
              "name": "SQLITE_ERROR",
              "message": "foreign key mismatch - \"child\" referencing \"parent\""
            },
            "schema": {
              "status": "ok",
              "rows": [
                [
                  "table",
                  "child",
                  "child",
                  "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
                ],
                [
                  "table",
                  "parent",
                  "parent",
                  "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
                ]
              ]
            },
            "parent_indexes": {
              "status": "ok",
              "rows": []
            },
            "parent_rows": {
              "status": "ok",
              "rows": [
                [
                  1,
                  "volume-A"
                ]
              ]
            },
            "child_rows": {
              "status": "ok",
              "rows": [
                [
                  10,
                  1
                ]
              ]
            },
            "in_transaction": true
          }
        }
      ],
      "before_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "error",
          "code": 1,
          "name": "SQLITE_ERROR",
          "message": "foreign key mismatch - \"child\" referencing \"parent\""
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": []
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": true
      },
      "guard_accepts": false,
      "decision": "rollback-guard",
      "after_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "backup_completed": true,
      "reopened": {
        "source": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "wal"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "parent_key",
                "parent",
                "CREATE UNIQUE INDEX parent_key ON parent(id)"
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "parent_key",
                1,
                "c",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        },
        "backup": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "wal"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "parent_key",
                "parent",
                "CREATE UNIQUE INDEX parent_key ON parent(id)"
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "parent_key",
                1,
                "c",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        }
      },
      "artifacts": {
        "source": {
          "file": "wal-guard-drop-index-source.sqlite",
          "sha256": "c990f20da0ccb532dece7cc7a0f7c6d63374d1482a873ec00190433e7dd359d2",
          "bytes": 16384
        },
        "backup": {
          "file": "wal-guard-drop-index-backup.sqlite",
          "sha256": "b3c6333a61b6b07bcf06a25a8a18d9ea91e04097be3632ee8ed51abb22a44bbf",
          "bytes": 16384
        }
      },
      "read_only_hashes_unchanged": true
    },
    {
      "case": "guard-drop-both",
      "source_mode": "WAL",
      "index_origin": "external",
      "initial": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "stages": [
        {
          "sql": "DROP INDEX parent_key",
          "outcome": {
            "status": "ok",
            "rows": []
          },
          "state": {
            "foreign_keys": {
              "status": "ok",
              "rows": [
                [
                  1
                ]
              ]
            },
            "journal_mode": {
              "status": "ok",
              "rows": [
                [
                  "wal"
                ]
              ]
            },
            "integrity_check": {
              "status": "ok",
              "rows": [
                [
                  "ok"
                ]
              ]
            },
            "foreign_key_check": {
              "status": "error",
              "code": 1,
              "name": "SQLITE_ERROR",
              "message": "foreign key mismatch - \"child\" referencing \"parent\""
            },
            "schema": {
              "status": "ok",
              "rows": [
                [
                  "table",
                  "child",
                  "child",
                  "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
                ],
                [
                  "table",
                  "parent",
                  "parent",
                  "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
                ]
              ]
            },
            "parent_indexes": {
              "status": "ok",
              "rows": []
            },
            "parent_rows": {
              "status": "ok",
              "rows": [
                [
                  1,
                  "volume-A"
                ]
              ]
            },
            "child_rows": {
              "status": "ok",
              "rows": [
                [
                  10,
                  1
                ]
              ]
            },
            "in_transaction": true
          }
        },
        {
          "sql": "DROP TABLE parent",
          "outcome": {
            "status": "ok",
            "rows": []
          },
          "state": {
            "foreign_keys": {
              "status": "ok",
              "rows": [
                [
                  1
                ]
              ]
            },
            "journal_mode": {
              "status": "ok",
              "rows": [
                [
                  "wal"
                ]
              ]
            },
            "integrity_check": {
              "status": "ok",
              "rows": [
                [
                  "ok"
                ]
              ]
            },
            "foreign_key_check": {
              "status": "ok",
              "rows": [
                [
                  "child",
                  10,
                  "parent",
                  0
                ]
              ]
            },
            "schema": {
              "status": "ok",
              "rows": [
                [
                  "table",
                  "child",
                  "child",
                  "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
                ]
              ]
            },
            "parent_indexes": {
              "status": "ok",
              "rows": []
            },
            "parent_rows": {
              "status": "error",
              "code": 1,
              "name": "SQLITE_ERROR",
              "message": "no such table: parent"
            },
            "child_rows": {
              "status": "ok",
              "rows": [
                [
                  10,
                  1
                ]
              ]
            },
            "in_transaction": true
          }
        }
      ],
      "before_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": [
            [
              "child",
              10,
              "parent",
              0
            ]
          ]
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": []
        },
        "parent_rows": {
          "status": "error",
          "code": 1,
          "name": "SQLITE_ERROR",
          "message": "no such table: parent"
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": true
      },
      "guard_accepts": false,
      "decision": "rollback-guard",
      "after_end": {
        "foreign_keys": {
          "status": "ok",
          "rows": [
            [
              1
            ]
          ]
        },
        "journal_mode": {
          "status": "ok",
          "rows": [
            [
              "wal"
            ]
          ]
        },
        "integrity_check": {
          "status": "ok",
          "rows": [
            [
              "ok"
            ]
          ]
        },
        "foreign_key_check": {
          "status": "ok",
          "rows": []
        },
        "schema": {
          "status": "ok",
          "rows": [
            [
              "index",
              "parent_key",
              "parent",
              "CREATE UNIQUE INDEX parent_key ON parent(id)"
            ],
            [
              "table",
              "child",
              "child",
              "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
            ],
            [
              "table",
              "parent",
              "parent",
              "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
            ]
          ]
        },
        "parent_indexes": {
          "status": "ok",
          "rows": [
            [
              0,
              "parent_key",
              1,
              "c",
              0
            ]
          ]
        },
        "parent_rows": {
          "status": "ok",
          "rows": [
            [
              1,
              "volume-A"
            ]
          ]
        },
        "child_rows": {
          "status": "ok",
          "rows": [
            [
              10,
              1
            ]
          ]
        },
        "in_transaction": false
      },
      "backup_completed": true,
      "reopened": {
        "source": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "wal"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "parent_key",
                "parent",
                "CREATE UNIQUE INDEX parent_key ON parent(id)"
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "parent_key",
                1,
                "c",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        },
        "backup": {
          "foreign_keys": {
            "status": "ok",
            "rows": [
              [
                1
              ]
            ]
          },
          "journal_mode": {
            "status": "ok",
            "rows": [
              [
                "wal"
              ]
            ]
          },
          "integrity_check": {
            "status": "ok",
            "rows": [
              [
                "ok"
              ]
            ]
          },
          "foreign_key_check": {
            "status": "ok",
            "rows": []
          },
          "schema": {
            "status": "ok",
            "rows": [
              [
                "index",
                "parent_key",
                "parent",
                "CREATE UNIQUE INDEX parent_key ON parent(id)"
              ],
              [
                "table",
                "child",
                "child",
                "CREATE TABLE child(id INTEGER PRIMARY KEY,parent_id INTEGER NOT NULL REFERENCES parent(id))"
              ],
              [
                "table",
                "parent",
                "parent",
                "CREATE TABLE parent(id INTEGER,label TEXT NOT NULL)"
              ]
            ]
          },
          "parent_indexes": {
            "status": "ok",
            "rows": [
              [
                0,
                "parent_key",
                1,
                "c",
                0
              ]
            ]
          },
          "parent_rows": {
            "status": "ok",
            "rows": [
              [
                1,
                "volume-A"
              ]
            ]
          },
          "child_rows": {
            "status": "ok",
            "rows": [
              [
                10,
                1
              ]
            ]
          },
          "in_transaction": false
        }
      },
      "artifacts": {
        "source": {
          "file": "wal-guard-drop-both-source.sqlite",
          "sha256": "c990f20da0ccb532dece7cc7a0f7c6d63374d1482a873ec00190433e7dd359d2",
          "bytes": 16384
        },
        "backup": {
          "file": "wal-guard-drop-both-backup.sqlite",
          "sha256": "b3c6333a61b6b07bcf06a25a8a18d9ea91e04097be3632ee8ed51abb22a44bbf",
          "bytes": 16384
        }
      },
      "read_only_hashes_unchanged": true
    }
  ]
}
