mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-12 19:44:13 +02:00
Test for does not have a CREATE INDEX case
Thanks, o1-preview: https://gist.github.com/simonw/edcd047a703ab6d6759a5a207364d744#response-1 Refs https://github.com/simonw/sqlite-utils/pull/634#issuecomment-2466304653
This commit is contained in:
parent
c47a2a42bc
commit
3041c5d5da
2 changed files with 29 additions and 1 deletions
|
|
@ -1975,7 +1975,7 @@ class Table(Queryable):
|
|||
{"index_name": index.name},
|
||||
).fetchall()[0][0]
|
||||
assert index_sql is not None, (
|
||||
f"Index '{index}' on table '{self.name}' does not have a "
|
||||
f"Index '{index.name}' on table '{self.name}' does not have a "
|
||||
"CREATE INDEX statement. You must manually drop this index prior to running this "
|
||||
"transformation and manually recreate the new index after running this transformation."
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue