CREATE TABLE prefix_label ( id SERIAL PRIMARY KEY, course integer NOT NULL default '0', name varchar(255) default NULL, content text, timemodified integer NOT NULL default '0' ); CREATE INDEX prefix_label_course_idx ON prefix_label (course); INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('label', 'add', 'quiz', 'name'); INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('label', 'update', 'quiz', 'name');