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=d985a8dbd3c2a0ae7e1b6a28b12b6c0297c888b8;hpb=49e4206a5efb01e6bf8b975e3727c42a92727625 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.