Skip to content

Commit

Permalink
nvm need to drop alembic table
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-chu committed Dec 4, 2024
1 parent 019799d commit e770f15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/trulens/core/database/sqlalchemy.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import pydantic
from pydantic import Field
import sqlalchemy as sa
from sqlalchemy import Table
from sqlalchemy.orm import joinedload
from sqlalchemy.orm import sessionmaker
from sqlalchemy.sql import text as sql_text
Expand Down Expand Up @@ -350,6 +351,8 @@ def reset_database(self):
meta = self.orm.metadata

tables = [
Table(f"{self.table_prefix}alembic_version", self.orm.metadata)
] + [
c.__table__
for c in self.orm.registry.values()
if hasattr(c, "__table__")
Expand Down

0 comments on commit e770f15

Please sign in to comment.