v0.13.1: fix force re-import of a parent ticket with children
Fix: a forced import_json that replaced a ticket which still had children failed with NOT NULL constraint failed: tickets.project_id. The composite (project_id, parent_id) FK is ON DELETE SET NULL, and SQLite nulls every column of the child key. insertBatch now detaches children before deleting each colliding ticket. Regression test added.