Check dbs exist before creating

This commit is contained in:
Ben Arc
2021-06-28 11:22:17 +01:00
parent 9a23fa509d
commit 2fb4ce8df4
3 changed files with 6 additions and 6 deletions
@@ -4,7 +4,7 @@ async def m001_initial(db):
"""
await db.execute(
"""
CREATE TABLE targets (
CREATE TABLE IF NOT EXISTS targets (
wallet TEXT NOT NULL,
source TEXT NOT NULL,
percent INTEGER NOT NULL CHECK (percent >= 0 AND percent <= 100),