mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +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
|
@ -103,7 +103,7 @@ CREATE TABLE `prefix_course_sections` (
|
|||
CREATE TABLE `prefix_log` (
|
||||
`id` int(10) unsigned NOT NULL auto_increment,
|
||||
`time` int(10) unsigned NOT NULL default '0',
|
||||
`user` int(10) unsigned NOT NULL default '0',
|
||||
`userid` int(10) unsigned NOT NULL default '0',
|
||||
`ip` varchar(15) NOT NULL default '',
|
||||
`course` int(10) unsigned NOT NULL default '0',
|
||||
`module` varchar(10) NOT NULL default '',
|
||||
|
@ -191,7 +191,7 @@ CREATE TABLE `prefix_user` (
|
|||
|
||||
CREATE TABLE `prefix_user_admins` (
|
||||
`id` int(10) unsigned NOT NULL auto_increment,
|
||||
`user` int(10) unsigned NOT NULL default '0',
|
||||
`userid` int(10) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `id` (`id`)
|
||||
) TYPE=MyISAM COMMENT='One record per administrator user';
|
||||
|
@ -203,10 +203,10 @@ CREATE TABLE `prefix_user_admins` (
|
|||
|
||||
CREATE TABLE `prefix_user_students` (
|
||||
`id` int(10) unsigned NOT NULL auto_increment,
|
||||
`user` int(10) unsigned NOT NULL default '0',
|
||||
`userid` int(10) unsigned NOT NULL default '0',
|
||||
`course` int(10) unsigned NOT NULL default '0',
|
||||
`start` int(10) unsigned NOT NULL default '0',
|
||||
`end` int(10) unsigned NOT NULL default '0',
|
||||
`timestart` int(10) unsigned NOT NULL default '0',
|
||||
`timeend` int(10) unsigned NOT NULL default '0',
|
||||
`time` int(10) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `id` (`id`)
|
||||
|
@ -219,7 +219,7 @@ CREATE TABLE `prefix_user_students` (
|
|||
|
||||
CREATE TABLE `prefix_user_teachers` (
|
||||
`id` int(10) unsigned NOT NULL auto_increment,
|
||||
`user` int(10) unsigned NOT NULL default '0',
|
||||
`userid` int(10) unsigned NOT NULL default '0',
|
||||
`course` int(10) unsigned NOT NULL default '0',
|
||||
`authority` int(10) NOT NULL default '3',
|
||||
`role` varchar(40) NOT NULL default '',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue