Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
medialibrary
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
57
Issues
57
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
medialibrary
Commits
bf9dd2db
Commit
bf9dd2db
authored
May 11, 2020
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MediaGroup: Ignore type/group_id updates on missing media
parent
9a323042
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/MediaGroup.cpp
src/MediaGroup.cpp
+3
-2
No files found.
src/MediaGroup.cpp
View file @
bf9dd2db
...
...
@@ -587,8 +587,9 @@ std::string MediaGroup::trigger( MediaGroup::Triggers t, uint32_t dbModel )
assert
(
dbModel
>=
26
);
return
"CREATE TRIGGER "
+
triggerName
(
t
,
dbModel
)
+
" AFTER UPDATE OF type, group_id ON "
+
Media
::
Table
::
Name
+
" WHEN IFNULL(old.group_id, 0) != IFNULL(new.group_id, 0) OR"
" old.type != new.type"
" WHEN (IFNULL(old.group_id, 0) != IFNULL(new.group_id, 0) OR"
" old.type != new.type)"
" AND new.is_present != 0"
" BEGIN"
// Handle increment
" UPDATE "
+
Table
::
Name
+
" SET"
...
...
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