alembic is in charge of the db
change
commit 40db8344c869e6e2db24a05eb6b699a23aa368d1
author Alpha Chen <alpha@kejadlen.dev>
date
parent 5bcdb855
diff --git a/Makefile b/Makefile
index 46a0e4c..b9cfd9f 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,7 @@ docker:
 		--cap-add=NET_ADMIN \
 		--device=/dev/net/tun \
 		--name=go_ji \
+		-e=GO_JI_SENTRY_ENVIRONMENT=development \
 		-e=TAILSCALE_AUTHKEY=$$TAILSCALE_AUTHKEY \
 		go-ji
 
diff --git a/go_ji/db.py b/go_ji/db.py
index d126d7b..03d2146 100644
--- a/go_ji/db.py
+++ b/go_ji/db.py
@@ -22,7 +22,6 @@ def create_session(url: str, debug: bool = False):
         sessionmaker(autocommit=False, autoflush=False, bind=engine)
     )
     Base.query = db_session.query_property()
-    Base.metadata.create_all(bind=engine)
     return db_session