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:
@@ -38,7 +38,7 @@ CREATE TABLE forum_posts (
|
||||
id SERIAL PRIMARY KEY,
|
||||
discussion integer NOT NULL default '0',
|
||||
parent integer NOT NULL default '0',
|
||||
"user" integer NOT NULL default '0',
|
||||
userid integer NOT NULL default '0',
|
||||
created integer NOT NULL default '0',
|
||||
modified integer NOT NULL default '0',
|
||||
mailed integer NOT NULL default '0',
|
||||
@@ -56,7 +56,7 @@ CREATE TABLE forum_posts (
|
||||
|
||||
CREATE TABLE forum_ratings (
|
||||
id SERIAL PRIMARY KEY,
|
||||
"user" integer NOT NULL default '0',
|
||||
userid integer NOT NULL default '0',
|
||||
post integer NOT NULL default '0',
|
||||
time integer NOT NULL default '0',
|
||||
rating integer NOT NULL default '0'
|
||||
@@ -69,7 +69,7 @@ CREATE TABLE forum_ratings (
|
||||
|
||||
CREATE TABLE forum_subscriptions (
|
||||
id SERIAL PRIMARY KEY,
|
||||
"user" integer NOT NULL default '0',
|
||||
userid integer NOT NULL default '0',
|
||||
forum integer NOT NULL default '0'
|
||||
);
|
||||
# --------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user