mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Added a new format field for comments
This commit is contained in:
parent
70b2c772b3
commit
52436fe1cc
9 changed files with 38 additions and 17 deletions
|
@ -146,6 +146,10 @@ function assignment_upgrade($oldversion) {
|
|||
table_column('assignment', '', 'var1', 'integer', '10', '', 0, 'null', 'emailteachers');
|
||||
}
|
||||
|
||||
if ($oldversion < 2005041700) { // Allow comments to have a formatting
|
||||
table_column('assignment_submissions', '', 'format', 'integer', '4', 'unsigned', '0', 'not null', 'comment');
|
||||
}
|
||||
|
||||
|
||||
/// These lines ALWAYS need to be here at the end of this file. Don't mess with them. :-)
|
||||
include_once("$CFG->dirroot/mod/assignment/lib.php");
|
||||
|
|
|
@ -7,7 +7,7 @@ CREATE TABLE `prefix_assignment` (
|
|||
`course` int(10) unsigned NOT NULL default '0',
|
||||
`name` varchar(255) NOT NULL default '',
|
||||
`description` text NOT NULL,
|
||||
`format` tinyint(2) unsigned NOT NULL default '0',
|
||||
`format` tinyint(4) unsigned NOT NULL default '0',
|
||||
`assignmenttype` varchar(50) NOT NULL default '',
|
||||
`resubmit` tinyint(2) unsigned NOT NULL default '0',
|
||||
`emailteachers` tinyint(2) unsigned NOT NULL default '0',
|
||||
|
@ -41,6 +41,7 @@ CREATE TABLE `prefix_assignment_submissions` (
|
|||
`data2` text NOT NULL,
|
||||
`grade` int(11) NOT NULL default '0',
|
||||
`comment` text NOT NULL,
|
||||
`format` tinyint(4) unsigned NOT NULL default '0',
|
||||
`teacher` int(10) unsigned NOT NULL default '0',
|
||||
`timemarked` int(10) unsigned NOT NULL default '0',
|
||||
`mailed` tinyint(1) unsigned NOT NULL default '0',
|
||||
|
|
|
@ -144,6 +144,9 @@ function assignment_upgrade($oldversion) {
|
|||
table_column('assignment', '', 'var1', 'integer', '10', '', 0, 'null', 'emailteachers');
|
||||
}
|
||||
|
||||
if ($oldversion < 2005041700) { // Allow comments to have a formatting
|
||||
table_column('assignment_submissions', '', 'format', 'integer', '4', 'unsigned', '0', 'not null', 'comment');
|
||||
}
|
||||
|
||||
|
||||
/// These lines ALWAYS need to be here at the end of this file. Don't mess with them. :-)
|
||||
|
|
|
@ -42,6 +42,7 @@ CREATE TABLE prefix_assignment_submissions (
|
|||
data2 text NOT NULL default '',
|
||||
grade integer NOT NULL default '0',
|
||||
comment text NOT NULL default '',
|
||||
format integer NOT NULL default '0',
|
||||
teacher integer NOT NULL default '0',
|
||||
timemarked integer NOT NULL default '0',
|
||||
mailed integer NOT NULL default '0'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue