Open robhoney opened 5 years ago
The hydra-server init.py contains this code for creating the db:
class HydraServer(): def __init__(self): hdb.create_default_users_and_perms() make_root_user() hdb.create_default_net()
This does not create the default units and dimensions. It looks like the following needs to be added:
hdb.create_default_units_and_dimensions()
I've tested this (adding after _make_rootuser() and it works, it creates both the units and definitions.
I think it might also need adding to hydra-base.
The hydra-server init.py contains this code for creating the db:
This does not create the default units and dimensions. It looks like the following needs to be added:
hdb.create_default_units_and_dimensions()
I've tested this (adding after _make_rootuser() and it works, it creates both the units and definitions.
I think it might also need adding to hydra-base.