import type { PoolClient } from 'pg'; /** * Phase 2 — Widget table refactor. * * - Renames `widget` → `widget_instance` and `widget_id` → `widget_instance_id`. * - Creates `widget_placement` with one row per (widget_instance, route, area) * cell, including a nullable `entity_urn` for entity-level CMS-page placements. * - Backfills placements from the cross-product of `widget.route` × `widget.area` * JSONB arrays (preserving the existing render semantics). * - Drops `route`, `area`, `sort_order` from `widget_instance` once placements * are populated. * * Container children: there is no parent FK on `widget_instance`. Child widgets * are stored as regular `widget_placement` rows whose `area` follows the * synthetic convention `columnsContainer__col_` — the * `Columns` storefront widget emits matching `` elements at render time, * so children attach via the standard Area mechanism with no recursive loader. * (Earlier iterations of this branch shipped a `parent_widget_instance_id` FK * + a 1.4.0 cleanup migration; consolidated here before commit. See * `02-widget-refactor-technical-specification.md` § 7.2 step 5.) * * The migration runner wraps the whole script in a transaction, so a partial * failure rolls back cleanly. See `bin/lib/bootstrap/migrate.js`. */ declare const _default: (connection: PoolClient) => Promise; export default _default;