import type { PoolClient } from 'pg'; /** * Backfill `url_rewrite` rows for existing CMS pages so they get root-level * friendly URLs (`/` -> internal `/page/`), matching the * `syncPageUrlRewrite` service that now runs on create/update. * * Idempotent (`ON CONFLICT (entity_uuid)`), so re-runs and pages created after * this migration both stay consistent. Drafts are included; the `cmsPageView` * handler's `status = 1` gate keeps their friendly URLs 404ing consistently. * * Runs after catalog's `url_rewrite.language` drop (module order: catalog < cms), * so the `ON CONFLICT (entity_uuid)` target constraint already exists. * * See wiki/routing-redirects-implementation-plan.md ยง PR1. */ declare const _default: (connection: PoolClient) => Promise; export default _default;