summaryrefslogtreecommitdiff
path: root/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to '__main__.py')
-rw-r--r--__main__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/__main__.py b/__main__.py
index 9b23484..03fb366 100644
--- a/__main__.py
+++ b/__main__.py
@@ -11,6 +11,8 @@ from .modules.database import cursor, conn
async def lifespan(app: FastAPI):
cursor.execute(
"CREATE TABLE IF NOT EXISTS agents(primary_key INTEGER PRIMARY KEY, callsign TEXT NOT NULL UNIQUE, token TEXT NOT NULL)")
+ cursor.execute(
+ "CREATE TABLE IF NOT EXISTS ships(primary_key INTEGER PRIMARY KEY, symbol TEXT NOT NULL UNIQUE, task TEXT NOT NULL, params TEXT)")
conn.commit()
agents.load_agents_from_database()
yield