mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-13 12:04:09 +02:00
Clarifying comments
This commit is contained in:
parent
e31dbf3f37
commit
c47a2a42bc
2 changed files with 4 additions and 1 deletions
|
|
@ -1969,7 +1969,7 @@ class Table(Queryable):
|
|||
)
|
||||
# Re-add existing indexes
|
||||
for index in self.indexes:
|
||||
if index.origin not in ("pk"):
|
||||
if index.origin != "pk":
|
||||
index_sql = self.db.execute(
|
||||
"""SELECT sql FROM sqlite_master WHERE type = 'index' AND name = :index_name;""",
|
||||
{"index_name": index.name},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue