improve: css for change order
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
#db/__init__.py
|
||||
import os
|
||||
import pkgutil
|
||||
import subprocess
|
||||
from contextlib import contextmanager
|
||||
|
||||
from sqlalchemy.schema import CreateTable
|
||||
|
||||
from db.models import Base
|
||||
|
||||
@@ -60,6 +58,8 @@ def init_payload():
|
||||
with get_db() as session:
|
||||
session.execute(text("SET FOREIGN_KEY_CHECKS = 0;"))
|
||||
for model in table_models:
|
||||
print(str(CreateTable(model.__table__)))
|
||||
|
||||
print(f"MODEL -- {model}, {hasattr(model, '__pay_load__')}")
|
||||
if hasattr(model, "__pay_load__"):
|
||||
payload = model.__pay_load__[ENVIRONMENT]
|
||||
|
||||
Reference in New Issue
Block a user