mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-11 18:28:52 +00:00
fix(store): match chat_schema.sql to sqlite 3.46+ indent
The schema-dump test renders the partial-index WHERE via the sqlite3
CLI; sqlite >=3.46 wraps a multi-condition WHERE onto two lines
("IS NOT NULL" + indented "AND ...") where 3.45 kept it on one. The
committed schema was generated with 3.45, so CI (newer sqlite) failed
the comparison on idx_contacts_simplex_name. Regenerated with the
newer formatter; only that one WHERE clause changes.
This commit is contained in:
@@ -1321,7 +1321,8 @@ ON contacts(
|
||||
user_id,
|
||||
simplex_name
|
||||
)
|
||||
WHERE simplex_name IS NOT NULL AND deleted = 0;
|
||||
WHERE simplex_name IS NOT NULL
|
||||
AND deleted = 0;
|
||||
CREATE UNIQUE INDEX idx_groups_simplex_name
|
||||
ON groups(
|
||||
user_id,
|
||||
|
||||
Reference in New Issue
Block a user