mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-26 02:44:33 +02:00
.rst fixes
This commit is contained in:
parent
4230560e94
commit
3db2c26ce2
1 changed files with 3 additions and 1 deletions
|
|
@ -399,8 +399,10 @@ The ``table.add_foreign_key(column, other_table, other_column)`` method takes th
|
|||
- If the column is of format ``author_id``, look for tables called ``author`` or ``authors``
|
||||
- If the column does not end in ``_id``, try looking for a table with the exact name of the column or that name with an added ``s``
|
||||
|
||||
.. _python_api_add_foreign_keys:
|
||||
|
||||
Adding multiple foreign key constraints at once
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
-----------------------------------------------
|
||||
|
||||
The final step in adding a new foreign key to a SQLite database is to run ``VACUUM``, to ensure the new foreign key is available in future introspection queries.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue