From: les_kopari Date: Sat, 17 Jan 2004 12:59:28 +0000 (+0000) Subject: Another test run. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ea31ae41c7a4844320680f7301751c1cddfe7dbc;p=moodle.git Another test run. --- diff --git a/lib/db/schemaExecutionListing.html b/lib/db/schemaExecutionListing.html index e7cd19bc59..703d7b05b0 100755 --- a/lib/db/schemaExecutionListing.html +++ b/lib/db/schemaExecutionListing.html @@ -1499,6 +1499,268 @@ dual; END;   (oci8po): select * from user_admins  
+ + + + + + + + + + + + + +
iduserid
+

schemaUser_students.xml

+
+(oci8po): drop table user_students   +
+ +
+(oci8po): drop sequence SEQ_user_students   +
+ +
+(oci8po): select value from sys.database_compatible_level   +
+ +
+(oci8po): select lower(table_name), table_type from cat where table_type in +('TABLE', 'VIEW')   +
+ +
+(oci8po): select lower(table_name), table_type from cat where table_type in +('TABLE', 'VIEW')   +
+ +
  • (user_students): Insert 1 row for testing only...comment out later +
    +(oci8po): CREATE TABLE user_students ( id DECIMAL(10) NOT NULL, userid +DECIMAL(10) NOT NULL, course DECIMAL(10) NOT NULL, timestart DECIMAL(10) NOT +NULL, timeend DECIMAL(10) NOT NULL, time DECIMAL(10) NOT NULL, timeaccess +DECIMAL(10) NOT NULL, PRIMARY KEY (id) )   +
    + +
    +(oci8po): CREATE SEQUENCE SEQ_user_students   +
    + +
    +(oci8po): CREATE OR REPLACE TRIGGER TRIG_SEQ_user_students BEFORE insert ON +user_students FOR EACH ROW BEGIN select SEQ_user_students.nextval into :new.id +from dual; END;   +
    + +
    +(oci8po): insert into user_students values (1, 1, 1, 1, 1, 1, 1)   + +
    + +
    +(oci8po): insert into user_students values (2, 2, 2, 2, 2, 2, 2)   + +
    + +
    +(oci8po): insert into user_students values (3, 3, 3, 3, 3, 3, 3)   + +
    + +
    +(oci8po): select * from user_students   +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    iduseridcoursetimestarttimeendtimetimeaccess
    +

    schemaUser_teachers.xml

    +
    +(oci8po): drop table user_teachers   +
    + +
    +(oci8po): drop sequence SEQ_user_teachers   +
    + +
    +(oci8po): select value from sys.database_compatible_level   +
    + +
    +(oci8po): select lower(table_name), table_type from cat where table_type in +('TABLE', 'VIEW')   +
    + +
    +(oci8po): select lower(table_name), table_type from cat where table_type in +('TABLE', 'VIEW')   +
    + +
  • (user_teachers): Insert 1 row for testing only...comment out later +
    +(oci8po): CREATE TABLE user_teachers ( id DECIMAL(10) NOT NULL, userid +DECIMAL(10) NOT NULL, course DECIMAL(10) NOT NULL, authority DECIMAL(10) NOT +NULL, role VARCHAR(40) NOT NULL, editall DECIMAL(1) NOT NULL, timemodified +DECIMAL(10) NOT NULL, timeaccess DECIMAL(10) NOT NULL, PRIMARY KEY (id) )   + +
    + +
    +(oci8po): CREATE SEQUENCE SEQ_user_teachers   +
    + +
    +(oci8po): CREATE OR REPLACE TRIGGER TRIG_SEQ_user_teachers BEFORE insert ON +user_teachers FOR EACH ROW BEGIN select SEQ_user_teachers.nextval into :new.id +from dual; END;   +
    + +
    +(oci8po): insert into user_teachers values (1, 1, 1, 1, 1, 1, 1, 1)   + +
    + +
    +(oci8po): insert into user_teachers values (2, 2, 2, 2, 2, 2, 2, 2)   + +
    + +
    +(oci8po): insert into user_teachers values (3, 3, 3, 3, 3, 3, 3, 3)   + +
    + +
    +(oci8po): select * from user_teachers   +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    iduseridcourseauthorityroleeditalltimemodifiedtimeaccess
    1
    2
    3
    +

    schemaUser_coursecreators.xml

    +
    +(oci8po): drop table user_coursecreators   +
    + +
    +(oci8po): drop sequence SEQ_user_coursecreators   +
    + +
    +(oci8po): select value from sys.database_compatible_level   +
    + +
    +(oci8po): select lower(table_name), table_type from cat where table_type in +('TABLE', 'VIEW')   +
    + +
    +(oci8po): select lower(table_name), table_type from cat where table_type in +('TABLE', 'VIEW')   +
    + +
  • (user_coursecreators): Insert 1 row for testing only...comment out later +
    +(oci8po): CREATE TABLE user_coursecreators ( id DECIMAL(10) NOT NULL, userid +DECIMAL(10) NOT NULL, PRIMARY KEY (id) )   +
    + +
    +(oci8po): CREATE SEQUENCE SEQ_user_coursecreators   +
    + +
    +(oci8po): CREATE OR REPLACE TRIGGER TRIG_SEQ_user_coursecreators BEFORE insert +ON user_coursecreators FOR EACH ROW BEGIN select SEQ_user_coursecreators.nextval +into :new.id from dual; END;   +
    + +
    +(oci8po): insert into user_coursecreators values (1, 1)   +
    + +
    +(oci8po): insert into user_coursecreators values (2, 2)   +
    + +
    +(oci8po): insert into user_coursecreators values (3, 3)   +
    + +
    +(oci8po): select * from user_coursecreators   +
    +