mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 17:00:23 +00:00
fix: force rebuild drops tables before ensure_schema recreates them
This commit is contained in:
parent
9f8f73ba17
commit
3cb3fd75a4
1 changed files with 1 additions and 1 deletions
|
|
@ -303,10 +303,10 @@ def run(args: argparse.Namespace) -> int:
|
|||
from paperforge.memory.db import ensure_vec_extension
|
||||
from paperforge.memory.schema import ensure_schema
|
||||
ensure_vec_extension(_conn)
|
||||
ensure_schema(_conn)
|
||||
for _t in ("vec_fulltext", "vec_body", "vec_objects",
|
||||
"vec_fulltext_meta", "vec_body_meta", "vec_objects_meta"):
|
||||
_conn.execute(f'DROP TABLE IF EXISTS "{_t}"')
|
||||
ensure_schema(_conn)
|
||||
_conn.commit()
|
||||
except Exception:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Reference in a new issue