-- Version 28 to 27: the review ledger and its switch go. Version 27 has no reader of reviewer
-- reports; the reports stay in their transcripts, and a newer ctx reads them again.
-- Run on its own, with nothing else holding the archive:
-- sqlite3 ~/.ctx/ctx.sqlite < schema/migrate/28-down.sql (or: ctx migrate down 27)
BEGIN IMMEDIATE;
DROP TABLE IF EXISTS ctx_review_read;
DROP TABLE IF EXISTS ctx_review_escape;
DROP TABLE IF EXISTS ctx_review_finding;
DROP TABLE IF EXISTS ctx_review;
DELETE FROM ctx_meta WHERE key = 'review';
PRAGMA user_version = 27;
COMMIT;