From 013617dafbf2ca9e4ada7f99c734d365d86974bb Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 8 Dec 2016 15:06:06 +0000 Subject: [PATCH] Rename update_schema to _create_schema --- gramps/plugins/db/dbapi/dbapi.py | 4 ++-- gramps/plugins/db/dbapi/inmemorydb.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/plugins/db/dbapi/dbapi.py b/gramps/plugins/db/dbapi/dbapi.py index 650afa86e..2bc852ef8 100644 --- a/gramps/plugins/db/dbapi/dbapi.py +++ b/gramps/plugins/db/dbapi/dbapi.py @@ -166,9 +166,9 @@ class DBAPI(DbGeneric): # We use the existence of the person table as a proxy for the database # being new if not self.dbapi.table_exists("person"): - self.update_schema() + self._create_schema() - def update_schema(self): + def _create_schema(self): """ Create and update schema. """ diff --git a/gramps/plugins/db/dbapi/inmemorydb.py b/gramps/plugins/db/dbapi/inmemorydb.py index 35f371b0f..936972c6f 100644 --- a/gramps/plugins/db/dbapi/inmemorydb.py +++ b/gramps/plugins/db/dbapi/inmemorydb.py @@ -42,7 +42,7 @@ class InMemoryDB(DBAPI): Create an in-memory sqlite database. """ self.dbapi = Sqlite(":memory:") - self.update_schema() + self._create_schema() def write_version(self, directory): """Write files for a newly created DB."""