mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-18 14:34:24 +02:00
Rename the option to create-triggers for FTS.
This commit is contained in:
parent
3816556782
commit
d0658fda27
4 changed files with 7 additions and 7 deletions
|
|
@ -335,7 +335,7 @@ def test_enable_fts_with_triggers(db_path):
|
|||
CliRunner()
|
||||
.invoke(
|
||||
cli.cli,
|
||||
["enable-fts", db_path, "Gosh", "c1", "--fts4", "--create-update-triggers"],
|
||||
["enable-fts", db_path, "Gosh", "c1", "--fts4", "--create-triggers"],
|
||||
)
|
||||
.exit_code
|
||||
)
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ def test_enable_fts_w_triggers(fresh_db):
|
|||
table = fresh_db["searchable"]
|
||||
table.insert(search_records[0])
|
||||
table.enable_fts(
|
||||
["text", "country"], fts_version="FTS4", create_update_triggers=True
|
||||
["text", "country"], fts_version="FTS4", create_triggers=True
|
||||
)
|
||||
assert [("tanuki are tricksters", "Japan", "foo")] == table.search("tanuki")
|
||||
table.insert(search_records[1])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue