Fix foreign key errors with full-text content