Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
72c20adc
Commit
72c20adc
authored
Dec 05, 2017
by
Erwan Croze
👋🏻
Browse files
Replace DATE by TIMESTAMP in main-db for db
parent
56fa68ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/db/main-db.cpp
View file @
72c20adc
...
...
@@ -912,7 +912,7 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate),
"CREATE TABLE IF NOT EXISTS event ("
" id"
+
primaryKeyStr
(
"BIGINT UNSIGNED"
)
+
","
" type TINYINT UNSIGNED NOT NULL,"
" creation_time
DATE
NOT NULL"
" creation_time
TIMESTAMP
NOT NULL"
") "
+
charset
;
*
session
<<
...
...
@@ -925,10 +925,10 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate),
" local_sip_address_id"
+
primaryKeyRefStr
(
"BIGINT UNSIGNED"
)
+
" NOT NULL,"
// Dialog creation time.
" creation_time
DATE
NOT NULL,"
" creation_time
TIMESTAMP
NOT NULL,"
// Last event time (call, message...).
" last_update_time
DATE
NOT NULL,"
" last_update_time
TIMESTAMP
NOT NULL,"
// ConferenceChatRoom, BasicChatRoom, RTT...
" capabilities TINYINT UNSIGNED NOT NULL,"
...
...
@@ -1055,7 +1055,7 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate),
" from_sip_address_id"
+
primaryKeyRefStr
(
"BIGINT UNSIGNED"
)
+
" NOT NULL,"
" to_sip_address_id"
+
primaryKeyRefStr
(
"BIGINT UNSIGNED"
)
+
" NOT NULL,"
" time
DATE
,"
" time
TIMESTAMP
,"
// See: https://tools.ietf.org/html/rfc5438#section-6.3
" imdn_message_id VARCHAR(255) NOT NULL,"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment