DB-API: separate dbapi init from sql init
This commit is contained in:
parent
29a5d9dbe7
commit
ce33e7509c
@ -73,7 +73,12 @@ class DBAPI(DbGeneric):
|
||||
exec(code, globals(), default_settings)
|
||||
|
||||
self.dbapi = default_settings["dbapi"]
|
||||
self.update_schema()
|
||||
|
||||
def update_schema(self):
|
||||
"""
|
||||
Create and update schema.
|
||||
"""
|
||||
# make sure schema is up to date:
|
||||
self.dbapi.try_execute("""CREATE TABLE person (
|
||||
handle VARCHAR(50) PRIMARY KEY NOT NULL,
|
||||
|
Loading…
Reference in New Issue
Block a user