We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I ran this:
db["Reports"].add_foreign_key("Reported by ID", "Reporters", "id")
And got this:
~/jupyter-venv/lib/python3.9/site-packages/sqlite_utils/db.py in add_foreign_keys(self, foreign_keys) 616 # Have to VACUUM outside the transaction to ensure .foreign_keys property 617 # can see the newly created foreign key. --> 618 self.vacuum() 619 620 def index_foreign_keys(self): ~/jupyter-venv/lib/python3.9/site-packages/sqlite_utils/db.py in vacuum(self) 629 630 def vacuum(self): --> 631 self.execute("VACUUM;") 632 633 ~/jupyter-venv/lib/python3.9/site-packages/sqlite_utils/db.py in execute(self, sql, parameters) 234 return self.conn.execute(sql, parameters) 235 else: --> 236 return self.conn.execute(sql) 237 238 def executescript(self, sql): DatabaseError: database disk image is malformed
The text was updated successfully, but these errors were encountered:
I bet the bug is in here:
sqlite-utils/sqlite_utils/db.py
Lines 593 to 602 in 806c210
Sorry, something went wrong.
a76e3b3
Release 3.7
8c542d2
Refs #237, #238, #240, #250, #257, #259, #260
No branches or pull requests
I ran this:
And got this:
The text was updated successfully, but these errors were encountered: