X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fauth.py;h=a734b467d3f9fd090143fb9f85d7885f00068c7e;hp=90fc1e22d8a63d07fcf743ec7f956c1bd4171b12;hb=4c57e2e64537d6263c618da58bcd8f8767b8076e;hpb=747c34e54f98aa70b3407ad0da54e5ad0cfb64a0;ds=sidebyside diff --git a/osm_nbi/auth.py b/osm_nbi/auth.py index 90fc1e2..a734b46 100644 --- a/osm_nbi/auth.py +++ b/osm_nbi/auth.py @@ -84,9 +84,9 @@ class Authenticator: except DbException as e: raise AuthException(str(e), http_code=e.http_code) - def init_db(self, target_version='1.0'): + def init_db(self, target_version='1.1'): """ - Check if the database has been initialized. If not, create the required tables + Check if the database has been initialized, with at least one user. If not, create an adthe required tables and insert the predefined mappings between roles and permissions. :param target_version: schema version that should be present in the database.