Adding default subscriber entity.

This commit is contained in:
stephb9959
2022-04-05 16:27:14 -07:00
parent f36a9f5dba
commit 9d6ffbe25c

View File

@@ -245,7 +245,7 @@ namespace OpenWifi {
// the default entity.
// We also need to make sure that all entities have some type set.
std::vector<std::string> Script{
"update entities set type='normal' where type='' ",
"update entities set type='normal', defaultEntity=false where type is null ",
fmt::format("update inventory set entity='{}' where entity='' and subscriber!='' ", DefaultSubscriberEntity_)
};
EntityDB().RunScript(Script);