-- 027_page_folders.sql — Library folders: a folder is a content-less Page -- (isFolder) that organizes other pages/folders through the existing parentId -- hierarchy. Additive and idempotent; schema.sql carries the identical column, -- so this is a structural no-op on a fresh database (db-converge proves both -- paths land the same). Deleting a folder reparents its children to the -- folder's parent (handled in the API); the FK stays ON DELETE SET NULL. ALTER TABLE "Page" ADD COLUMN IF NOT EXISTS "isFolder" boolean NOT NULL DEFAULT false;