-
-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sqlite_utils.db.AlterError: No such column: log.id #164
Comments
Upon closer inspection, this may be a duplicate of #162 . |
I think you're right @hydrosquall. By chance are you able to see if #163 fixes it for you? |
I'm having trouble replicating this issue. Could you confirm your SQLite version too, along with the compile options? Could you try running this and report back the results:
Here's what I get on a system that I've not yet managed to replicate the bug on:
|
Turned that recipe into a TIL :https://til.simonwillison.net/sqlite/python-sqlite-environment |
Also try this: python -c '
from llm.migrations import migrate
from sqlite_utils import Database
db = Database(memory=True)
migrate(db)
print(db.schema)
' That purely runs the migrations against an in-memory database, and should show if you get that error or not for that simplest possible case. |
I think this is fixed: |
Hi,
I recently upgraded sqlite-utils from 3.33 to 3.35 in the environment that has
llm installed
I'm getting the error
I'm assuming there is a database used for logging that might have had the wrong schema so I tried running
llm logs status
, and hit a similar error.I tried deleting the database file and the regenerating a new log using the llm mlc package, but the original error persists.
Any ideas for what I could do to fix the logging capability?
Metadata
Here's the schema of the table that does exist, using
The text was updated successfully, but these errors were encountered: