DB migration for test case

This commit is contained in:
Yax 2022-12-01 20:41:02 +01:00
parent 1522f2826d
commit 5cd86a42bf

View file

@ -9,7 +9,7 @@ class Database:
db_dal = DAL() db_dal = DAL()
def configure(self, db_uri): def configure(self, db_uri):
self.db_dal = DAL(db_uri, migrate=False) self.db_dal = DAL(db_uri, migrate=db_uri.startswith("sqlite:memory"))
self.db_dal.define_table( self.db_dal.define_table(
"comment", "comment",
Field("url"), Field("url"),