mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-03 12:08:08 +00:00
Adding default subscriber entity.
This commit is contained in:
@@ -245,7 +245,7 @@ namespace OpenWifi {
|
|||||||
// the default entity.
|
// the default entity.
|
||||||
// We also need to make sure that all entities have some type set.
|
// We also need to make sure that all entities have some type set.
|
||||||
std::vector<std::string> Script{
|
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_)
|
fmt::format("update inventory set entity='{}' where entity='' and subscriber!='' ", DefaultSubscriberEntity_)
|
||||||
};
|
};
|
||||||
EntityDB().RunScript(Script);
|
EntityDB().RunScript(Script);
|
||||||
|
|||||||
Reference in New Issue
Block a user