Skip to content

Commit

Permalink
Revert "fix: order objects by (name, type) in load_schema()"
Browse files Browse the repository at this point in the history
This reverts commit baef093.

load_schema() already partitions each type into its own query,
so sorting by type is redundant.
  • Loading branch information
thegamecracks committed Dec 21, 2023
1 parent baef093 commit dfc29ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sqlitediff/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def load_schema(conn: sqlite3.Connection) -> Schema:
sql = (
"SELECT name, tbl_name, sql FROM sqlite_schema "
"WHERE type = ? AND name NOT LIKE 'sqlite_%' "
"ORDER BY name, type"
"ORDER BY name"
)
tables = conn.execute(sql, ("table",)).fetchall()
indices = conn.execute(sql, ("index",)).fetchall()
Expand Down

0 comments on commit dfc29ab

Please sign in to comment.