12 Commits

Author SHA1 Message Date
moodler
f53af9410c Better checks during membership checks 2002-12-31 07:16:52 +00:00
moodler
b3fa6684ea Fixes to insert_record (from Petri) to explicitly use field default
values if we know them from ADOdb, to avoid some problems with PostgreSQL 7.2 onwards
2002-12-30 03:25:48 +00:00
moodler
18496c590b New get_record_select function (for completeness) and a completely
revamped update_user_in_db() function
2002-12-29 16:28:09 +00:00
moodler
9d378732e4 More little fixes 2002-12-29 04:17:32 +00:00
moodler
5c63e0c4ee Some changes to remove warnings about empty variables and cleanup 2002-12-29 04:02:42 +00:00
moodler
97485d0726 More database tweaks and improved access to forum search engine 2002-12-23 15:33:40 +00:00
moodler
99988d1a87 This version installs smoothly for me on PostgreSQL 2002-12-23 14:19:45 +00:00
moodler
31fefa636d More database tweaking ... looking pretty good with PostgreSQL now 2002-12-23 13:48:31 +00:00
moodler
ebc3bd2b24 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
2002-12-23 09:39:26 +00:00
moodler
1523be781f Changes to get a more reliable insert ID for any table 2002-12-22 06:33:30 +00:00
moodler
d26d7ed0c3 Changes to make things work again :-) 2002-12-22 06:15:44 +00:00
moodler
9fa49e22ab Many many changes lumped in here ... not finished yet either.
Basically all the Database functions are in lib/datalib.php
and the web functions are all in lib/weblib.php, so
moodlelib.php is much thinner than it was.

Data functions have been extended ... most old calls will
still work, but now many more SQL commands can be performed
using the datalib functions rather than using SQL.  I'm
currently moving through the whole tree replacing SQL
calls or at least concentrating them in one section of
mod/xxx/lib.php

Still working on forums, quizzes, surveys, resources.

The tree is currently not full working ... some things are
half-completed ... will resume tomorrow.
2002-12-20 14:44:14 +00:00