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?
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()
620 def index_foreign_keys(self):
~/jupyter-venv/lib/python3.9/site-packages/sqlite_utils/db.py in vacuum(self)
630 def vacuum(self):
--> 631 self.execute("VACUUM;")
~/jupyter-venv/lib/python3.9/site-packages/sqlite_utils/db.py in execute(self, sql, parameters)
234 return self.conn.execute(sql, parameters)
--> 236 return self.conn.execute(sql)
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:
Lines 593 to 602
Sorry, something went wrong.
Refs #237, #238, #240, #250, #257, #259, #260
No branches or pull requests