#1540 Configure the MBS backend code to use the correct SQLite database during local builds
Merged 4 years ago by mprahl. Opened 4 years ago by qwan.
qwan/fm-orchestrator localbuild-fix-db-session  into  v3

@@ -145,6 +145,9 @@ 

          os.remove(dbpath)

  

      db.create_all()

+     # Reconfigure the backend database session registry to use the new the database location

+     db_session.remove()

+     db_session.configure(bind=db.session.bind)

  

      params = {

          "local_build": True,

This is a cherry-pick for fc7ecb1 from master.

Pull-Request has been merged by mprahl

4 years ago