EARLY SUPPORT FOR CALENDARS AND EVENTS

--------------------------------------

New functions and tables, based on work from Gustav Delius
(see http://moodle.org/mod/forum/discuss.php?d=4466)

This forms the core of a new system to store, track and utilise
event information in all modules, as well as allowing external
calendars to be synchronised with new information.
This commit is contained in:
moodler
2004-01-17 09:47:45 +00:00
parent e34aab0dd0
commit 5fba04fba0
6 changed files with 169 additions and 1 deletions
+18
View File
@@ -80,6 +80,24 @@ CREATE TABLE prefix_course_sections (
visible integer NOT NULL default '1'
);
CREATE TABLE prefix_event (
id SERIAL PRIMARY KEY,
name varchar(255) NOT NULL default '',
description text,
courseid integer NOT NULL default '0',
groupid integer NOT NULL default '0',
userid integer NOT NULL default '0',
modulename varchar(20) NOT NULL default '',
instance integer NOT NULL default '0',
eventtype varchar(20) NOT NULL default '',
timestart integer NOT NULL default '0',
timeduration integer NOT NULL default '0',
timemodified integer NOT NULL default '0'
);
CREATE INDEX prefix_event_courseid_idx ON prefix_event (courseid);
CREATE INDEX prefix_event_userid_idx ON prefix_event (userid);
CREATE TABLE prefix_groups (
id SERIAL PRIMARY KEY,
courseid integer NOT NULL default '0',