Commit 63b8bd2c authored by ggeller's avatar ggeller

Tables for homework feature, which is ready for testing.

parent f20987b0
# $Header: /cvsroot/tikiwiki/tiki/db/tiki-1.9-mysql.sql,v 1.14 2004-03-12 01:36:09 mose Exp $
# $Header: /cvsroot/tikiwiki/tiki/db/tiki-1.9-mysql.sql,v 1.15 2004-03-19 19:08:13 ggeller Exp $
# phpMyAdmin MySQL-Dump
# version 2.5.1
# http://www.phpmyadmin.net/ (download page)
......@@ -4333,6 +4333,7 @@ CREATE TABLE tiki_jukebox_tracks (
# Homework tables start
#
# Created Feb 22, 2004
# Revised Mar 19, 2004
#
DROP TABLE IF EXISTS hw_actionlog;
......@@ -4348,39 +4349,31 @@ CREATE TABLE hw_actionlog (
DROP TABLE IF EXISTS hw_assignments;
CREATE TABLE hw_assignments (
articleId int(8) NOT NULL auto_increment,
assignmentId int(8) NOT NULL auto_increment,
title varchar(80) default NULL,
state char(1) default 's',
authorName varchar(60) default NULL,
topicId int(14) default NULL,
topicName varchar(40) default NULL,
size int(12) default NULL,
useImage char(1) default NULL,
image_name varchar(80) default NULL,
image_type varchar(80) default NULL,
image_size int(14) default NULL,
image_x int(4) default NULL,
image_y int(4) default NULL,
image_data longblob,
publishDate int(14) default NULL,
expireDate int(14) default NULL,
created int(14) default NULL,
teacherName varchar(40) NOT NULL default '',
created int(14) NOT NULL default '0',
dueDate int(14) default NULL,
modified int(14) NOT NULL default '0',
heading text,
body text,
hash varchar(32) default NULL,
author varchar(200) default NULL,
reads int(14) default NULL,
votes int(8) default NULL,
points int(14) default NULL,
type varchar(50) default NULL,
rating decimal(3,2) default NULL,
isfloat char(1) default NULL,
PRIMARY KEY (articleId),
KEY title (title),
KEY heading (heading(255)),
KEY body (body(255)),
KEY reads (reads),
FULLTEXT KEY ft (title,heading,body)
deleted tinyint(4) NOT NULL default '0',
PRIMARY KEY (assignmentId),
KEY dueDate (dueDate)
) TYPE=MyISAM;
DROP TABLE IF EXISTS hw_grading_queue;
CREATE TABLE hw_grading_queue (
id int(14) NOT NULL auto_increment,
status int(4) default NULL,
submissionDate int(14) default NULL,
userLogin varchar(40) NOT NULL default '',
userIp varchar(15) default NULL,
pageId int(14) default NULL,
pageDate int(14) default NULL,
pageVersion int(14) default NULL,
assignmentId int(14) default NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;
DROP TABLE IF EXISTS hw_grading_queue;
......
-- $Header: /cvsroot/tikiwiki/tiki/db/tiki-1.9-oci8.sql,v 1.11 2004-03-12 01:36:09 mose Exp $
-- $Header: /cvsroot/tikiwiki/tiki/db/tiki-1.9-oci8.sql,v 1.12 2004-03-19 19:08:13 ggeller Exp $
-- phpMyAdmin MySQL-Dump
-- version 2.5.1
-- http://www.phpmyadmin.net/ (download page)
......@@ -5672,6 +5672,7 @@ END;
-- Homework tables start
--
-- Created Feb 22, 2004
-- Revised Mar 19, 2004
--
DROP TABLE "hw_actionlog";
......@@ -5690,46 +5691,46 @@ DROP TABLE "hw_assignments";
CREATE SEQUENCE "hw_assignments_sequ" INCREMENT BY 1 START WITH 1;
CREATE TABLE "hw_assignments" (
"articleId" number(8) NOT NULL,
"assignmentId" number(8) NOT NULL,
"title" varchar(80) default NULL,
"state" char(1) default 's',
"authorName" varchar(60) default NULL,
"topicId" number(14) default NULL,
"topicName" varchar(40) default NULL,
"size" number(12) default NULL,
"useImage" char(1) default NULL,
"image_name" varchar(80) default NULL,
"image_type" varchar(80) default NULL,
"image_size" number(14) default NULL,
"image_x" number(4) default NULL,
"image_y" number(4) default NULL,
"image_data" blob,
"publishDate" number(14) default NULL,
"expireDate" number(14) default NULL,
"created" number(14) default NULL,
"teacherName" varchar(40) default '' NOT NULL,
"created" number(14) default '0' NOT NULL,
"dueDate" number(14) default NULL,
"modified" number(14) default '0' NOT NULL,
"heading" clob,
"body" clob,
"hash" varchar(32) default NULL,
"author" varchar(200) default NULL,
"reads" number(14) default NULL,
"votes" number(8) default NULL,
"points" number(14) default NULL,
"type" varchar(50) default NULL,
"rating" decimal(3,2) default NULL,
"isfloat" char(1) default NULL,
PRIMARY KEY ("articleId")
"deleted" number(4) default '0' NOT NULL,
PRIMARY KEY ("assignmentId")
) ;
CREATE TRIGGER "hw_assignments_trig" BEFORE INSERT ON "hw_assignments" REFERENCING NEW AS NEW OLD AS OLD FOR EACH ROW
BEGIN
SELECT "hw_assignments_sequ".nextval into :NEW."articleId" FROM DUAL;
SELECT "hw_assignments_sequ".nextval into :NEW."assignmentId" FROM DUAL;
END;
/
CREATE INDEX "hw_assignments_dueDate" ON "hw_assignments"("dueDate");
DROP TABLE "hw_grading_queue";
CREATE SEQUENCE "hw_grading_queue_sequ" INCREMENT BY 1 START WITH 1;
CREATE TABLE "hw_grading_queue" (
"id" number(14) NOT NULL,
"status" number(4) default NULL,
"submissionDate" number(14) default NULL,
"userLogin" varchar(40) default '' NOT NULL,
"userIp" varchar(15) default NULL,
"pageId" number(14) default NULL,
"pageDate" number(14) default NULL,
"pageVersion" number(14) default NULL,
"assignmentId" number(14) default NULL,
PRIMARY KEY ("id")
) ;
CREATE TRIGGER "hw_grading_queue_trig" BEFORE INSERT ON "hw_grading_queue" REFERENCING NEW AS NEW OLD AS OLD FOR EACH ROW
BEGIN
SELECT "hw_grading_queue_sequ".nextval into :NEW."id" FROM DUAL;
END;
/
CREATE INDEX "hw_assignments_title" ON "hw_assignments"("title");
CREATE INDEX "hw_assignments_heading" ON "hw_assignments"("heading");
CREATE INDEX "hw_assignments_body" ON "hw_assignments"("body");
CREATE INDEX "hw_assignments_reads" ON "hw_assignments"("reads");
CREATE INDEX "hw_assignments_ft" ON "hw_assignments"("title","heading","body");
DROP TABLE "hw_grading_queue";
......
-- $Header: /cvsroot/tikiwiki/tiki/db/tiki-1.9-pgsql.sql,v 1.11 2004-03-12 01:36:09 mose Exp $
-- $Header: /cvsroot/tikiwiki/tiki/db/tiki-1.9-pgsql.sql,v 1.12 2004-03-19 19:08:13 ggeller Exp $
-- phpMyAdmin MySQL-Dump
-- version 2.5.1
-- http://www.phpmyadmin.net/ (download page)
......@@ -5456,6 +5456,7 @@ CREATE TABLE "tiki_jukebox_tracks" (
-- Homework tables start
--
-- Created Feb 22, 2004
-- Revised Mar 19, 2004
--
DROP TABLE "hw_actionlog";
......@@ -5474,46 +5475,36 @@ CREATE TABLE "hw_actionlog" (
DROP TABLE "hw_assignments";
CREATE TABLE "hw_assignments" (
"articleId" serial,
"assignmentId" serial,
"title" varchar(80) default NULL,
"state" char(1) default 's',
"authorName" varchar(60) default NULL,
"topicId" bigint default NULL,
"topicName" varchar(40) default NULL,
"size" bigint default NULL,
"useImage" char(1) default NULL,
"image_name" varchar(80) default NULL,
"image_type" varchar(80) default NULL,
"image_size" bigint default NULL,
"image_x" smallint default NULL,
"image_y" smallint default NULL,
"image_data" bytea,
"publishDate" bigint default NULL,
"expireDate" bigint default NULL,
"created" bigint default NULL,
"teacherName" varchar(40) NOT NULL default '',
"created" bigint NOT NULL default '0',
"dueDate" bigint default NULL,
"modified" bigint NOT NULL default '0',
"heading" text,
"body" text,
"hash" varchar(32) default NULL,
"author" varchar(200) default NULL,
"reads" bigint default NULL,
"votes" integer default NULL,
"points" bigint default NULL,
"type" varchar(50) default NULL,
"rating" decimal(3,2) default NULL,
"isfloat" char(1) default NULL,
PRIMARY KEY ("articleId")
"deleted" smallint NOT NULL default '0',
PRIMARY KEY ("assignmentId")
) ;
CREATE INDEX "hw_assignments_dueDate" ON "hw_assignments"("dueDate");
DROP TABLE "hw_grading_queue";
CREATE TABLE "hw_grading_queue" (
"id" bigserial,
"status" smallint default NULL,
"submissionDate" bigint default NULL,
"userLogin" varchar(40) NOT NULL default '',
"userIp" varchar(15) default NULL,
"pageId" bigint default NULL,
"pageDate" bigint default NULL,
"pageVersion" bigint default NULL,
"assignmentId" bigint default NULL,
PRIMARY KEY ("id")
) ;
CREATE INDEX "hw_assignments_title" ON "hw_assignments"("title");
CREATE INDEX "hw_assignments_heading" ON "hw_assignments"("heading");
CREATE INDEX "hw_assignments_body" ON "hw_assignments"("body");
CREATE INDEX "hw_assignments_reads" ON "hw_assignments"("reads");
CREATE INDEX "hw_assignments_ft" ON "hw_assignments"("title","heading","body");
DROP TABLE "hw_grading_queue";
......
-- $Header: /cvsroot/tikiwiki/tiki/db/tiki-1.9-sqlite.sql,v 1.11 2004-03-12 01:36:09 mose Exp $
-- $Header: /cvsroot/tikiwiki/tiki/db/tiki-1.9-sqlite.sql,v 1.12 2004-03-19 19:08:13 ggeller Exp $
-- phpMyAdmin MySQL-Dump
-- version 2.5.1
-- http://www.phpmyadmin.net/ (download page)
......@@ -5456,6 +5456,7 @@ CREATE TABLE "tiki_jukebox_tracks" (
-- Homework tables start
--
-- Created Feb 22, 2004
-- Revised Mar 19, 2004
--
DROP TABLE "hw_actionlog";
......@@ -5474,46 +5475,36 @@ CREATE TABLE "hw_actionlog" (
DROP TABLE "hw_assignments";
CREATE TABLE "hw_assignments" (
"articleId" serial,
"assignmentId" serial,
"title" varchar(80) default NULL,
"state" char(1) default 's',
"authorName" varchar(60) default NULL,
"topicId" bigint default NULL,
"topicName" varchar(40) default NULL,
"size" bigint default NULL,
"useImage" char(1) default NULL,
"image_name" varchar(80) default NULL,
"image_type" varchar(80) default NULL,
"image_size" bigint default NULL,
"image_x" smallint default NULL,
"image_y" smallint default NULL,
"image_data" bytea,
"publishDate" bigint default NULL,
"expireDate" bigint default NULL,
"created" bigint default NULL,
"teacherName" varchar(40) NOT NULL default '',
"created" bigint NOT NULL default '0',
"dueDate" bigint default NULL,
"modified" bigint NOT NULL default '0',
"heading" text,
"body" text,
"hash" varchar(32) default NULL,
"author" varchar(200) default NULL,
"reads" bigint default NULL,
"votes" integer default NULL,
"points" bigint default NULL,
"type" varchar(50) default NULL,
"rating" decimal(3,2) default NULL,
"isfloat" char(1) default NULL,
PRIMARY KEY ("articleId")
"deleted" smallint NOT NULL default '0',
PRIMARY KEY ("assignmentId")
) ;
CREATE INDEX "hw_assignments_dueDate" ON "hw_assignments"("dueDate");
DROP TABLE "hw_grading_queue";
CREATE TABLE "hw_grading_queue" (
"id" bigserial,
"status" smallint default NULL,
"submissionDate" bigint default NULL,
"userLogin" varchar(40) NOT NULL default '',
"userIp" varchar(15) default NULL,
"pageId" bigint default NULL,
"pageDate" bigint default NULL,
"pageVersion" bigint default NULL,
"assignmentId" bigint default NULL,
PRIMARY KEY ("id")
) ;
CREATE INDEX "hw_assignments_title" ON "hw_assignments"("title");
CREATE INDEX "hw_assignments_heading" ON "hw_assignments"("heading");
CREATE INDEX "hw_assignments_body" ON "hw_assignments"("body");
CREATE INDEX "hw_assignments_reads" ON "hw_assignments"("reads");
CREATE INDEX "hw_assignments_ft" ON "hw_assignments"("title","heading","body");
DROP TABLE "hw_grading_queue";
......
set quoted_identifier on
go
-- $Header: /cvsroot/tikiwiki/tiki/db/tiki-1.9-sybase.sql,v 1.11 2004-03-12 01:36:24 mose Exp $
-- $Header: /cvsroot/tikiwiki/tiki/db/tiki-1.9-sybase.sql,v 1.12 2004-03-19 19:08:13 ggeller Exp $
-- phpMyAdmin MySQL-Dump
-- version 2.5.1
-- http://www.phpmyadmin.net/ (download page)
......@@ -7647,6 +7647,7 @@ go
-- Homework tables start
--
-- Created Feb 22, 2004
-- Revised Mar 19, 2004
--
-- DROP TABLE "hw_actionlog"
......@@ -7671,53 +7672,43 @@ go
CREATE TABLE "hw_assignments" (
articleId numeric(8 ,0) identity,
assignmentId numeric(8 ,0) identity,
"title" varchar(80) default NULL NULL,
"state" char(1) default 's',
"authorName" varchar(60) default NULL NULL,
"topicId" numeric(14,0) default NULL NULL,
"topicName" varchar(40) default NULL NULL,
"size" numeric(12,0) default NULL NULL,
"useImage" char(1) default NULL NULL,
"image_name" varchar(80) default NULL NULL,
"image_type" varchar(80) default NULL NULL,
"image_size" numeric(14,0) default NULL NULL,
"image_x" numeric(4,0) default NULL NULL,
"image_y" numeric(4,0) default NULL NULL,
"image_data" image default '',
"publishDate" numeric(14,0) default NULL NULL,
"expireDate" numeric(14,0) default NULL NULL,
"created" numeric(14,0) default NULL NULL,
"teacherName" varchar(40) default '' NOT NULL,
"created" numeric(14,0) default '0' NOT NULL,
"dueDate" numeric(14,0) default NULL NULL,
"modified" numeric(14,0) default '0' NOT NULL,
"heading" text default '',
"body" text default '',
"hash" varchar(32) default NULL NULL,
"author" varchar(200) default NULL NULL,
"reads" numeric(14,0) default NULL NULL,
"votes" numeric(8,0) default NULL NULL,
"points" numeric(14,0) default NULL NULL,
"type" varchar(50) default NULL NULL,
"rating" decimal(3,2) default NULL NULL,
"isfloat" char(1) default NULL NULL,
PRIMARY KEY ("articleId")
"deleted" numeric(4,0) default '0' NOT NULL,
PRIMARY KEY ("assignmentId")
)
go
CREATE INDEX "hw_assignments_dueDate" ON "hw_assignments"("dueDate")
go
-- DROP TABLE "hw_grading_queue"
go
CREATE TABLE "hw_grading_queue" (
id numeric(14 ,0) identity,
"status" numeric(4,0) default NULL NULL,
"submissionDate" numeric(14,0) default NULL NULL,
"userLogin" varchar(40) default '' NOT NULL,
"userIp" varchar(15) default NULL NULL,
"pageId" numeric(14,0) default NULL NULL,
"pageDate" numeric(14,0) default NULL NULL,
"pageVersion" numeric(14,0) default NULL NULL,
"assignmentId" numeric(14,0) default NULL NULL,
PRIMARY KEY ("id")
)
go
CREATE INDEX "hw_assignments_title" ON "hw_assignments"("title")
go
CREATE INDEX "hw_assignments_heading" ON "hw_assignments"("heading")
go
CREATE INDEX "hw_assignments_body" ON "hw_assignments"("body")
go
CREATE INDEX "hw_assignments_reads" ON "hw_assignments"("reads")
go
CREATE INDEX "hw_assignments_ft" ON "hw_assignments"("title","heading","body")
go
-- DROP TABLE "hw_grading_queue"
go
......
# $Header: /cvsroot/tikiwiki/tiki/db/tiki.sql,v 1.170 2004-03-12 01:34:04 mose Exp $
# $Header: /cvsroot/tikiwiki/tiki/db/tiki.sql,v 1.171 2004-03-19 19:08:13 ggeller Exp $
# phpMyAdmin MySQL-Dump
# version 2.5.1
# http://www.phpmyadmin.net/ (download page)
......@@ -4333,6 +4333,7 @@ CREATE TABLE tiki_jukebox_tracks (
# Homework tables start
#
# Created Feb 22, 2004
# Revised Mar 19, 2004
#
DROP TABLE IF EXISTS hw_actionlog;
......@@ -4348,39 +4349,31 @@ CREATE TABLE hw_actionlog (
DROP TABLE IF EXISTS hw_assignments;
CREATE TABLE hw_assignments (
articleId int(8) NOT NULL auto_increment,
assignmentId int(8) NOT NULL auto_increment,
title varchar(80) default NULL,
state char(1) default 's',
authorName varchar(60) default NULL,
topicId int(14) default NULL,
topicName varchar(40) default NULL,
size int(12) default NULL,
useImage char(1) default NULL,
image_name varchar(80) default NULL,
image_type varchar(80) default NULL,
image_size int(14) default NULL,
image_x int(4) default NULL,
image_y int(4) default NULL,
image_data longblob,
publishDate int(14) default NULL,
expireDate int(14) default NULL,
created int(14) default NULL,
teacherName varchar(40) NOT NULL default '',
created int(14) NOT NULL default '0',
dueDate int(14) default NULL,
modified int(14) NOT NULL default '0',
heading text,
body text,
hash varchar(32) default NULL,
author varchar(200) default NULL,
reads int(14) default NULL,
votes int(8) default NULL,
points int(14) default NULL,
type varchar(50) default NULL,
rating decimal(3,2) default NULL,
isfloat char(1) default NULL,
PRIMARY KEY (articleId),
KEY title (title),
KEY heading (heading(255)),
KEY body (body(255)),
KEY reads (reads),
FULLTEXT KEY ft (title,heading,body)
deleted tinyint(4) NOT NULL default '0',
PRIMARY KEY (assignmentId),
KEY dueDate (dueDate)
) TYPE=MyISAM;
DROP TABLE IF EXISTS hw_grading_queue;
CREATE TABLE hw_grading_queue (
id int(14) NOT NULL auto_increment,
status int(4) default NULL,
submissionDate int(14) default NULL,
userLogin varchar(40) NOT NULL default '',
userIp varchar(15) default NULL,
pageId int(14) default NULL,
pageDate int(14) default NULL,
pageVersion int(14) default NULL,
assignmentId int(14) default NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;
DROP TABLE IF EXISTS hw_grading_queue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment