mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Changes throughout Moodle to remove any reserved words from the
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
This commit is contained in:
parent
1f48942e7d
commit
ebc3bd2b24
68 changed files with 277 additions and 461 deletions
|
@ -88,6 +88,9 @@ function assignment_upgrade($oldversion) {
|
|||
if ($oldversion < 2002111500) {
|
||||
execute_sql(" ALTER TABLE `assignment` ADD `resubmit` TINYINT(2) UNSIGNED DEFAULT '0' NOT NULL AFTER `format` ");
|
||||
}
|
||||
if ($oldversion < 2002122300) {
|
||||
execute_sql("ALTER TABLE `assignment_submissions` CHANGE `user` `userid` INT(10) UNSIGNED DEFAULT '0' NOT NULL ");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ CREATE TABLE `prefix_assignment` (
|
|||
CREATE TABLE `prefix_assignment_submissions` (
|
||||
`id` int(10) unsigned NOT NULL auto_increment,
|
||||
`assignment` int(10) unsigned NOT NULL default '0',
|
||||
`user` int(10) unsigned NOT NULL default '0',
|
||||
`userid` int(10) unsigned NOT NULL default '0',
|
||||
`timecreated` int(10) unsigned NOT NULL default '0',
|
||||
`timemodified` int(10) unsigned NOT NULL default '0',
|
||||
`numfiles` int(10) unsigned NOT NULL default '0',
|
||||
|
|
|
@ -23,7 +23,7 @@ CREATE TABLE assignment (
|
|||
CREATE TABLE assignment_submissions (
|
||||
id SERIAL PRIMARY KEY,
|
||||
assignment integer NOT NULL default '0',
|
||||
"user" 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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue