Don't set CustomerId of guest records in some tables
Author: RomanovMCreated Jun 8, 2026Updated Sep 14, 2026
Labelsrefactoring / source code
We no need to keep CustomerId of guest records in some cases (forum posts, reviews, blog comments, news comments) since the anonymous customer doesn't have any information that can be displayed, such as name, etc.
First, let's prepare a list of such tables (entities). Then for existing records we can set 0 or null in migration for these tables and remove guests.
Source: nopSolutions/nopCommerce