{
  "schema_version": 1,
  "kind": "controlled-native-software-experiment",
  "generated_at_utc": "2026-11-11T04:25:41.600422+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.54.1",
    "sqlite_source_id": "2026-10-16 14:45:20 555e07ef33f69a0957d24d8e555b702464a131d6f1607f4c3c1e4551e8e6ca76",
    "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",
      "MALLOC_SOFT_LIMIT=1024",
      "MAX_ATTACHED=10",
      "MAX_COLUMN=2000",
      "MAX_COMPOUND_SELECT=500",
      "MAX_DEFAULT_PAGE_SIZE=8192",
      "MAX_EXPR_DEPTH=1000",
      "MAX_FUNCTION_ARG=1000",
      "MAX_LENGTH=1000000000",
      "MAX_LIKE_PATTERN_LENGTH=50000",
      "MAX_MMAP_SIZE=0x7fff0000",
      "MAX_PAGE_COUNT=0xfffffffe",
      "MAX_PAGE_SIZE=65536",
      "MAX_SCHEMA=10000000",
      "MAX_SQL_LENGTH=1000000000",
      "MAX_TRIGGER_DEPTH=1000",
      "MAX_VARIABLE_NUMBER=32766",
      "MAX_VDBE_OP=250000000",
      "MAX_WORKER_THREADS=8",
      "MUTEX_PTHREADS",
      "SYSTEM_MALLOC",
      "TEMP_STORE=1",
      "THREADSAFE=1"
    ],
    "sqlite_libraries": [
      {
        "path": "/srv/cgpt-workspace/artifacts/aio-parent-key-20261111/engine/libsqlite3.so.0",
        "sha256": "39375610878c710864f3d7f072c6c3ff05bd1842ca57ec915b20900b39f79d17"
      }
    ]
  },
  "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": "93d50f9dabcb00f5bc4e8d944359263d17324756255e6122fcfc287843eca90c",
          "bytes": 16384
        },
        "backup": {
          "file": "delete-external-baseline-backup.sqlite",
          "sha256": "7487c1d21d1fd9a8988105d5d3b5cf075e6eae666a0fbf49a67650db4226dd97",
          "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": "7e5fcbc98faa02d520b7127cda095878681811b2b062aef2221ef48eceecb00f",
          "bytes": 16384
        },
        "backup": {
          "file": "delete-external-drop-index-backup.sqlite",
          "sha256": "633952db3d4e94d2720f434c5fad578ccbd78315797376aa4e5722c2ebe321fd",
          "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": "e6ca65d9b921e4bd491be373b8369508adb06037cec046db23a0d31c12733401",
          "bytes": 16384
        },
        "backup": {
          "file": "delete-external-drop-both-backup.sqlite",
          "sha256": "cfd0e299c3db73adc5059cccb23257cd7b703437ffe7a2d39430d9101e3fb2ea",
          "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": "93d50f9dabcb00f5bc4e8d944359263d17324756255e6122fcfc287843eca90c",
          "bytes": 16384
        },
        "backup": {
          "file": "delete-external-drop-parent-backup.sqlite",
          "sha256": "7487c1d21d1fd9a8988105d5d3b5cf075e6eae666a0fbf49a67650db4226dd97",
          "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": "3df21b193cc06df8728e7fd8281aadf1b1f292ac38b79e31e96cc629dca6cbf6",
          "bytes": 16384
        },
        "backup": {
          "file": "delete-inline-drop-parent-backup.sqlite",
          "sha256": "78475eccbb1ace6c056076726ae123796d7e5c2c0b02744f3507ce677495fd14",
          "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": "4ebd4a84afe63753efa4ac1a67515bd29a258ff56983586b5cf83795b1d63780",
          "bytes": 16384
        },
        "backup": {
          "file": "delete-external-rebuild-index-backup.sqlite",
          "sha256": "c6766a9be87e32f214f2213a71996b8d65d0056259b019217e6229352fe1192f",
          "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": "93d50f9dabcb00f5bc4e8d944359263d17324756255e6122fcfc287843eca90c",
          "bytes": 16384
        },
        "backup": {
          "file": "delete-guard-drop-index-backup.sqlite",
          "sha256": "7487c1d21d1fd9a8988105d5d3b5cf075e6eae666a0fbf49a67650db4226dd97",
          "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": "93d50f9dabcb00f5bc4e8d944359263d17324756255e6122fcfc287843eca90c",
          "bytes": 16384
        },
        "backup": {
          "file": "delete-guard-drop-both-backup.sqlite",
          "sha256": "7487c1d21d1fd9a8988105d5d3b5cf075e6eae666a0fbf49a67650db4226dd97",
          "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": "0de88700de73e8cbf4ca21f5005211356a79db0415daac1e127c94ca58e79036",
          "bytes": 16384
        },
        "backup": {
          "file": "wal-external-baseline-backup.sqlite",
          "sha256": "45d5fcdd6f65a386a22f76126be3012dc7e98ce7360700b1d96e27a441af69f7",
          "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": "c907ea24f580f4e4bdf14d409069bd47bff6ecbd70afab6d5f2b0005035009b1",
          "bytes": 16384
        },
        "backup": {
          "file": "wal-external-drop-index-backup.sqlite",
          "sha256": "05aa6935d6a3f50aed6ad7b70cecc336cc78b0f0242a02e65a1df09e90fbe639",
          "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": "cfd145067e71fc029d709ae20bd99a9e1d15b580282b2019b3eee44ff9421024",
          "bytes": 16384
        },
        "backup": {
          "file": "wal-external-drop-both-backup.sqlite",
          "sha256": "f1c938de99e13b2338fe6ccb6a2649b08723cc204ceaf2db3aee80426d22d323",
          "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": "0de88700de73e8cbf4ca21f5005211356a79db0415daac1e127c94ca58e79036",
          "bytes": 16384
        },
        "backup": {
          "file": "wal-external-drop-parent-backup.sqlite",
          "sha256": "45d5fcdd6f65a386a22f76126be3012dc7e98ce7360700b1d96e27a441af69f7",
          "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": "969e8499e2b727cb226933df26f1b73217bc2fc8fbe6d3de3c7fd3e542d68769",
          "bytes": 16384
        },
        "backup": {
          "file": "wal-inline-drop-parent-backup.sqlite",
          "sha256": "77917bedb20f9523cbdb76e7ba221506d68e40d17786dcc583d9452841cc151f",
          "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": "c80ccff10dd484584199e9e7cc4c1245d06cb3f27f4c43a0df02fd52a74679cc",
          "bytes": 16384
        },
        "backup": {
          "file": "wal-external-rebuild-index-backup.sqlite",
          "sha256": "222c7cdd903aa5a4eb834a7c9e3008b783799816452ba62373131bbc4dc209b7",
          "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": "0de88700de73e8cbf4ca21f5005211356a79db0415daac1e127c94ca58e79036",
          "bytes": 16384
        },
        "backup": {
          "file": "wal-guard-drop-index-backup.sqlite",
          "sha256": "45d5fcdd6f65a386a22f76126be3012dc7e98ce7360700b1d96e27a441af69f7",
          "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": "0de88700de73e8cbf4ca21f5005211356a79db0415daac1e127c94ca58e79036",
          "bytes": 16384
        },
        "backup": {
          "file": "wal-guard-drop-both-backup.sqlite",
          "sha256": "45d5fcdd6f65a386a22f76126be3012dc7e98ce7360700b1d96e27a441af69f7",
          "bytes": 16384
        }
      },
      "read_only_hashes_unchanged": true
    }
  ]
}
