Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
liblinphone
Commits
db683ee6
Commit
db683ee6
authored
Oct 16, 2017
by
Ronan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(MainDb): create events table for subject, participant...
parent
15fcc695
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
src/db/main-db.cpp
src/db/main-db.cpp
+49
-0
No files found.
src/db/main-db.cpp
View file @
db683ee6
...
...
@@ -328,6 +328,55 @@ MainDb::MainDb () : AbstractDb(*new MainDbPrivate) {}
" ON DELETE CASCADE"
")"
;
*
session
<<
"CREATE TABLE IF NOT EXISTS conference_event ("
" event_id INT UNSIGNED PRIMARY KEY,"
" chat_room_id INT UNSIGNED NOT NULL,"
" FOREIGN KEY (event_id)"
" REFERENCES event(id)"
" ON DELETE CASCADE,"
" FOREIGN KEY (chat_room_id)"
" REFERENCES chat_room(peer_sip_address_id)"
" ON DELETE CASCADE"
")"
;
*
session
<<
"CREATE TABLE IF NOT EXISTS conference_participant_event ("
" conference_event_id INT UNSIGNED PRIMARY KEY,"
" participant_address_id INT UNSIGNED NOT NULL,"
" FOREIGN KEY (conference_event_id)"
" REFERENCES event(event_id)"
" ON DELETE CASCADE,"
" FOREIGN KEY (participant_address_id)"
" REFERENCES sip_address(id)"
" ON DELETE CASCADE"
")"
;
*
session
<<
"CREATE TABLE IF NOT EXISTS conference_participant_device_event ("
" conference_participant_event_id INT UNSIGNED PRIMARY KEY,"
" gruu_address_id INT UNSIGNED NOT NULL,"
" FOREIGN KEY (conference_participant_event_id)"
" REFERENCES conference_participant_event(conference_event_id)"
" ON DELETE CASCADE,"
" FOREIGN KEY (gruu_address_id)"
" REFERENCES sip_address(id)"
" ON DELETE CASCADE"
")"
;
*
session
<<
"CREATE TABLE IF NOT EXISTS conference_subject_event ("
" conference_event_id INT UNSIGNED PRIMARY KEY,"
" subject VARCHAR(255),"
" FOREIGN KEY (conference_event_id)"
" REFERENCES event(event_id)"
" ON DELETE CASCADE"
")"
;
*
session
<<
"CREATE TABLE IF NOT EXISTS message_event ("
" event_id INT UNSIGNED PRIMARY KEY,"
...
...
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