Skip to content

Commit

Permalink
SAK-31522 Typo error in oracle sequence (sakaiproject#3046)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjmerono authored Jul 21, 2016
1 parent 16cfee3 commit 16be5c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
10 changes: 1 addition & 9 deletions kernel/kernel-impl/src/main/sql/oracle/sakai_config_item.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,4 @@ ALTER TABLE SAKAI_CONFIG_ITEM
CREATE INDEX SCI_NODE_IDX ON SAKAI_CONFIG_ITEM (NODE ASC);
CREATE INDEX SCI_NAME_IDX ON SAKAI_CONFIG_ITEM (NAME ASC);

CREATE SEQUENCE SAKAI_CFG_ITEM_SEQ;

CREATE OR REPLACE TRIGGER SCI_ID_AI
BEFORE INSERT ON SAKAI_CONFIG_ITEM
FOR EACH ROW
BEGIN
SELECT SAKAI_CFG_ITEM_SEQ.NEXTVAL INTO :new.ID FROM dual;
END;
/
CREATE SEQUENCE SAKAI_CONFIG_ITEM_S;
11 changes: 1 addition & 10 deletions reference/docs/conversion/sakai_11_oracle_conversion.sql
Original file line number Diff line number Diff line change
Expand Up @@ -813,16 +813,7 @@ ALTER TABLE SAKAI_CONFIG_ITEM
CREATE INDEX SCI_NODE_IDX ON SAKAI_CONFIG_ITEM (NODE ASC);
CREATE INDEX SCI_NAME_IDX ON SAKAI_CONFIG_ITEM (NAME ASC);

CREATE SEQUENCE SAKAI_CFG_ITEM_S;

-- This is not needed if sequence match name in file HibernateConfigItem.hbm.xml
--CREATE OR REPLACE TRIGGER SCI_ID_AI
--BEFORE INSERT ON SAKAI_CONFIG_ITEM
--FOR EACH ROW
--BEGIN
-- SELECT SAKAI_CFG_ITEM_SEQ.NEXTVAL INTO :new.ID FROM dual;
--END;
--/
CREATE SEQUENCE SAKAI_CONFIG_ITEM_S;

-- SAK-30032 Create table to handle Peer Review attachments --
CREATE TABLE ASN_PEER_ASSESSMENT_ATTACH_T (
Expand Down

0 comments on commit 16be5c2

Please sign in to comment.