Rename update_schema to _create_schema
This commit is contained in:
parent
67c3d4a77a
commit
013617dafb
@ -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.
|
||||
"""
|
||||
|
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user