Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3113819
D5148.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1018 B
Referenced Files
None
Subscribers
None
D5148.diff
View Options
diff --git a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
--- a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
+++ b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
@@ -600,11 +600,15 @@
make_column("time", &Message::time)),
make_table(
"olm_persist_account",
- make_column("id", &OlmPersistAccount::id),
+ make_column("id", &OlmPersistAccount::id, unique(), primary_key()),
make_column("account_data", &OlmPersistAccount::account_data)),
make_table(
"olm_persist_sessions",
- make_column("target_user_id", &OlmPersistSession::target_user_id),
+ make_column(
+ "target_user_id",
+ &OlmPersistSession::target_user_id,
+ unique(),
+ primary_key()),
make_column("session_data", &OlmPersistSession::session_data)),
make_table(
"media",
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 1, 7:27 PM (19 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2400573
Default Alt Text
D5148.diff (1018 B)
Attached To
Mode
D5148: [native/sqlite] add missing unique and primary_key constraints to `sqlite_orm` structure
Attached
Detach File
Event Timeline
Log In to Comment