<?php

/**
 * Migration 0023 — Drop Rolls tables
 *
 * Rolls (curated, ordered sets of scene-mode pages) were retired
 * 2026-05-23 along with scene mode. All pages are screen-mode now.
 * RollService, REST endpoints, editor topbar picker, page-grid card
 * badge, and the `next_sequence_id` chain — all gone.
 *
 * This migration drops the two tables introduced by 0018. Idempotent
 * — re-running has no effect. Pre-existing rows are discarded because
 * no production deploys ever used the feature.
 *
 * @since 2.1.688
 */

if ( ! defined( 'ABSPATH' ) ) exit;

return [
    'description' => 'Drop instinctor_rolls + instinctor_roll_scenes tables (Rolls retired with scene mode)',

    'up' => [
        "DROP TABLE IF EXISTS {prefix}instinctor_roll_scenes",
        "DROP TABLE IF EXISTS {prefix}instinctor_rolls",
    ],

    'down' => [],
];
