Skip to content

Commit

Permalink
DB migration for test case
Browse files Browse the repository at this point in the history
  • Loading branch information
kianby committed Dec 1, 2022
1 parent 1522f28 commit 5cd86a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stacosys/db/__init__.py
Expand Up @@ -9,7 +9,7 @@ class Database:
db_dal = DAL()

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(
"comment",
Field("url"),
Expand Down

0 comments on commit 5cd86a4

Please sign in to comment.