Project

General

Profile

« Previous | Next » 

Revision 2444

Added by sgarg over 19 years ago

Added code which creates the triggers for the new tables. This is for Oracle only.

View differences:

build.xml
629 629
          userid="${user}"
630 630
          password="${password}"
631 631
          src="${build.src}/${upgrade-1.5-sql}" />
632
      <sql driver="${dbDriver}"
633
          classpath="${jdbc}:${jdbc-add1}:${jdbc-add2}"
634
          url="${jdbc-connect}"
635
          userid="${user}"
636
          password="${password}"
637
          rdbms="oracle"
638
          delimiter="/">
639
        <transaction>
640
           CREATE TRIGGER xml_returnfield_before_insert
641
           BEFORE INSERT ON xml_returnfield FOR EACH ROW
642
           BEGIN
643
              SELECT xml_returnfield_id_seq.nextval
644
                 INTO :new.returnfield_id
645
                 FROM dual;
646
           END;
647
           /
648
        </transaction>
649
        <transaction>
650
           CREATE TRIGGER xml_queryresult_before_insert
651
           BEFORE INSERT ON xml_queryresult FOR EACH ROW
652
           BEGIN
653
              SELECT xml_queryresult_id_seq.nextval
654
              INTO :new.queryresult_id
655
              FROM dual;
656
           END;
657
           /
658
        </transaction>
659
      </sql>
632 660
   </target>
633 661

  
634 662
   <target name="install" depends="war" description="* Full Install *">

Also available in: Unified diff