mirror of
https://github.com/moodle/moodle.git
synced 2025-01-23 00:28:57 +01:00
ebc3bd2b24
Moodle tables. ie user -> userid in many tables, plus in user_students start -> starttime and end -> endtime I've just done all this as carefully as I could ... I don't think I missed anything but it's pretty intensive work and I'd be fooling myself if I didn't think I'd missed a couple. Note that this version should pretty much be able to bootstrap itself using PostgreSQL now ... but this is untested
45 lines
1.5 KiB
SQL
45 lines
1.5 KiB
SQL
#
|
|
# Table structure for table assignment
|
|
#
|
|
|
|
CREATE TABLE assignment (
|
|
id SERIAL PRIMARY KEY,
|
|
course integer NOT NULL default '0',
|
|
name varchar(255) NOT NULL default '',
|
|
description text NOT NULL default '',
|
|
format integer NOT NULL default '0',
|
|
type integer NOT NULL default '1',
|
|
maxbytes integer NOT NULL default '100000',
|
|
timedue integer NOT NULL default '0',
|
|
grade integer NOT NULL default '0',
|
|
timemodified integer NOT NULL default '0'
|
|
);
|
|
# --------------------------------------------------------
|
|
|
|
#
|
|
# Table structure for table assignment_submissions
|
|
#
|
|
|
|
CREATE TABLE assignment_submissions (
|
|
id SERIAL PRIMARY KEY,
|
|
assignment integer NOT NULL default '0',
|
|
userid integer NOT NULL default '0',
|
|
timecreated integer NOT NULL default '0',
|
|
timemodified integer NOT NULL default '0',
|
|
numfiles integer NOT NULL default '0',
|
|
grade integer NOT NULL default '0',
|
|
comment text NOT NULL default '',
|
|
teacher integer NOT NULL default '0',
|
|
timemarked integer NOT NULL default '0',
|
|
mailed integer NOT NULL default '0'
|
|
);
|
|
# --------------------------------------------------------
|
|
|
|
|
|
INSERT INTO log_display VALUES ('assignment', 'view', 'assignment', 'name');
|
|
INSERT INTO log_display VALUES ('assignment', 'add', 'assignment', 'name');
|
|
INSERT INTO log_display VALUES ('assignment', 'update', 'assignment', 'name');
|
|
INSERT INTO log_display VALUES ('assignment', 'view submissions', 'assignment', 'name');
|
|
INSERT INTO log_display VALUES ('assignment', 'upload', 'assignment', 'name');
|
|
|