Remove unneccessary warning, refs #577, #585

This commit is contained in:
Simon Willison 2023-08-17 18:28:09 -07:00
commit 70717dc0e1
2 changed files with 0 additions and 4 deletions

View file

@ -1188,8 +1188,6 @@ See :ref:`cli_add_foreign_key`.
sqlite-utils add-foreign-key my.db books author_id authors id
WARNING: Could corrupt your database! Back up your database file first.
Options:
--ignore If foreign key already exists, do nothing
--load-extension TEXT Path to SQLite extension, with optional :entrypoint

View file

@ -491,8 +491,6 @@ def add_foreign_key(
Example:
sqlite-utils add-foreign-key my.db books author_id authors id
WARNING: Could corrupt your database! Back up your database file first.
"""
db = sqlite_utils.Database(path)
_load_extensions(db, load_extension)