Mbonea commited on
Commit
9284590
·
1 Parent(s): 41eef54
Files changed (1) hide show
  1. App/modelInit.py +3 -0
App/modelInit.py CHANGED
@@ -10,6 +10,9 @@ ssl_context.verify_mode = ssl.CERT_REQUIRED
10
  models = discover_models("Model.py")
11
  print("Discovered models:", models)
12
 
 
 
 
13
  TORTOISE_ORM = {
14
  "connections": {
15
  "default": {
 
10
  models = discover_models("Model.py")
11
  print("Discovered models:", models)
12
 
13
+ ## for migrations
14
+ models.append("aerich.models")
15
+
16
  TORTOISE_ORM = {
17
  "connections": {
18
  "default": {