mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
add_foreign_key can now detect table and pk, refs #25
This commit is contained in:
parent
c2622ceabd
commit
d645032cfa
7 changed files with 100 additions and 13 deletions
|
|
@ -200,8 +200,8 @@ def add_column(path, table, col_name, col_type, fk, fk_col, not_null_default):
|
|||
)
|
||||
@click.argument("table")
|
||||
@click.argument("column")
|
||||
@click.argument("other_table")
|
||||
@click.argument("other_column")
|
||||
@click.argument("other_table", required=False)
|
||||
@click.argument("other_column", required=False)
|
||||
def add_foreign_key(path, table, column, other_table, other_column):
|
||||
"""
|
||||
Add a new foreign key constraint to an existing table. Example usage:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue