Rename update_schema to _create_schema

This commit is contained in:
Nick Hall 2016-12-08 15:06:06 +00:00
parent 67c3d4a77a
commit 013617dafb
2 changed files with 3 additions and 3 deletions

View File

@ -166,9 +166,9 @@ class DBAPI(DbGeneric):
# We use the existence of the person table as a proxy for the database # We use the existence of the person table as a proxy for the database
# being new # being new
if not self.dbapi.table_exists("person"): 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. Create and update schema.
""" """

View File

@ -42,7 +42,7 @@ class InMemoryDB(DBAPI):
Create an in-memory sqlite database. Create an in-memory sqlite database.
""" """
self.dbapi = Sqlite(":memory:") self.dbapi = Sqlite(":memory:")
self.update_schema() self._create_schema()
def write_version(self, directory): def write_version(self, directory):
"""Write files for a newly created DB.""" """Write files for a newly created DB."""