Skip to content

Commit b28e7e3

Browse files
committed
Fixes installation error
1 parent d9fbe3a commit b28e7e3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Libraries/SmartStore.Data/Migrations/MigrationsConfiguration.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@ protected override void Seed(SmartObjectContext context)
4141
context.MigrateLocaleResources(MigrateLocaleResources);
4242
MigrateSettings(context);
4343

44-
var logTypeMigrator = new ActivityLogTypeMigrator(context);
45-
logTypeMigrator.AddActivityLogType("EditOrder", "Edit an order", "Auftrag bearbeitet");
44+
if (DataSettings.DatabaseIsInstalled())
45+
{
46+
var logTypeMigrator = new ActivityLogTypeMigrator(context);
47+
logTypeMigrator.AddActivityLogType("EditOrder", "Edit an order", "Auftrag bearbeitet");
48+
}
4649
}
4750

4851
public void MigrateSettings(SmartObjectContext context)

0 commit comments

Comments
 (0)