projects
/
platform
/
core
/
security
/
security-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b270855
)
Fix database scheme
25/116325/1
author
Bartlomiej Grzelewski
<b.grzelewski@samsung.com>
Thu, 23 Feb 2017 16:51:22 +0000
(17:51 +0100)
committer
Bartlomiej Grzelewski
<b.grzelewski@samsung.com>
Thu, 23 Feb 2017 16:57:19 +0000
(17:57 +0100)
Old scheme was generating cartesian product from
app_defined_privilege and uid table. It should generate
one row for application installed by one user.
Change-Id: Ic01c82eac655a43aa6454d9e519c91d3699bfcfd
db/db.sql
patch
|
blob
|
history
diff --git
a/db/db.sql
b/db/db.sql
index f926e5e7755ad9f9f9dfee082803fe6e5dc967e6..e3a3d1124d9b49795742d886380938169597cd00 100644
(file)
--- a/
db/db.sql
+++ b/
db/db.sql
@@
-219,7
+219,7
@@
SELECT
type
FROM app_defined_privilege
LEFT JOIN app USING (app_id)
-LEFT JOIN user_app USING (uid);
+LEFT JOIN user_app USING (
app_id,
uid);
DROP TRIGGER IF EXISTS app_defined_privilege_view_insert_trigger;
CREATE TRIGGER app_defined_privilege_view_insert_trigger