Skip to content

Commit

Permalink
Test for migrations fix in #162
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Aug 19, 2023
1 parent c4dbb62 commit 075d9af
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,10 @@ def test_migrate_from_original_schema(has_record):
if has_record:
expected_tables.add("logs")
assert set(db.table_names()).issuperset(expected_tables)


def test_migrations_with_legacy_alter_table():
# https://github.com/simonw/llm/issues/162
db = sqlite_utils.Database(memory=True)
db.execute("pragma legacy_alter_table=on")
migrate(db)

0 comments on commit 075d9af

Please sign in to comment.