Skip to content

Commit

Permalink
SAK-30162 Possible duplicate use of oracle sequence in sitestats
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjmerono committed Dec 22, 2015
1 parent f2bd24f commit 8914880
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions reference/docs/conversion/sakai_11_oracle_conversion.sql
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ CREATE TABLE SST_PRESENCE_TOTALS (
PRIMARY KEY(ID));
-- END SAK-29546

CREATE SEQUENCE SST_PRESENCE_TOTALS_ID START WITH 1 INCREMENT BY 1 nomaxvalue;

-- KNL-1369 Update kernel DDL with new roster.viewsitevisits permission
INSERT INTO SAKAI_REALM_FUNCTION VALUES (SAKAI_REALM_FUNCTION_SEQ.NEXTVAL, 'roster.viewsitevisits');
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'maintain'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'roster.viewsitevisits'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
lazy="true">
<id name="id" type="long" column="ID" unsaved-value="0">
<generator class="native">
<param name="sequence">SST_PRESENCE_ID</param>
<param name="sequence">SST_PRESENCE_TOTALS_ID</param>
</generator>
</id>
<property name="siteId" type="string" not-null="true">
Expand Down

0 comments on commit 8914880

Please sign in to comment.