Commit graph

4529 commits

Author SHA1 Message Date
moodler
04338f9ea1 Removed user_students, user_teachers, user_coursecreators and user_admins
as they are now irrelevant   MDL-6830
2006-10-05 07:05:06 +00:00
toyomoyo
cfa7cdb958 droppinf utf8 support for user_* tables 2006-10-05 06:05:02 +00:00
skodak
f47f4659de fixed nocache option in format_text() 2006-10-04 21:22:57 +00:00
moodler
acc26e71bd Reverted my changes to ddlib 2006-10-04 15:35:27 +00:00
moodler
a9b1f143d2 Undoing my hacks to try and keep this code clean as possible. 2006-10-04 15:30:54 +00:00
moodler
4e423cbf5d Bye-bye to old database upgrade files and hellow to upgrade.php!
First order of business:  drop all the extraneous user_xxx tables.
2006-10-04 09:47:05 +00:00
moodler
eb437bd351 Some changes to ddllib.php to make some functions a bit easier to call.
May not be final ... see MDL-6817 for details.
2006-10-04 09:44:38 +00:00
moodler
7b37cb9a01 Added new function
function user_has_role_assignment($userid, $roleid, $contextid=0)
2006-10-04 07:07:57 +00:00
moodler
c9f8e57f4a FIxed category editing button 2006-10-04 04:45:58 +00:00
toyomoyo
9b5d7a463e fixing typo 2006-10-04 02:43:29 +00:00
toyomoyo
7f8691201c fixed a bug where block instances aren't deleted properly 2006-10-04 02:43:11 +00:00
stronk7
2ddec1f4ac Changed PG rename_index() to use the old ALTER TABLE ... RENAME TO syntax
(pretty strange syntax, but seems to work)
2006-10-03 15:00:55 +00:00
toyomoyo
5e67946d6c adding support for 1.6->1.7 backups 2006-10-03 08:54:46 +00:00
moodler
8ea7e7b0f7 Merged endless loop fix from stable 2006-10-03 01:46:16 +00:00
skodak
5fe9a11d96 more diagnostics in has_capability() - number instead of context object detected and debug message displayed 2006-10-02 22:10:36 +00:00
skodak
a44de9c12f fixed print_texarea() capability requirement 2006-10-02 19:47:11 +00:00
stronk7
ae5a83e6fd rename_field() under mssql completed 2006-10-02 17:42:14 +00:00
stronk7
c562997ff8 rename_field() under oracle completed 2006-10-02 17:06:37 +00:00
stronk7
86bb076fc4 rename_field() under postgresql completed. 2006-10-02 17:02:35 +00:00
stronk7
dc7c388280 MySQL doesn't have check constraints. We use enums instead. 2006-10-02 17:02:07 +00:00
stronk7
f14080b0ad Prevent "id" fields to be renamed in generators 2006-10-02 16:47:02 +00:00
stronk7
6fdea1a0bd In my previous commit, "I" was "It" :-D
Plus one typo fixed.
2006-10-02 16:46:12 +00:00
stronk7
af72e37237 Prevent "id" fields to be renamed. I can cause lots of problems. 2006-10-02 16:37:41 +00:00
stronk7
0e204a1012 Some adjustments to be able to get names without prefix 2006-10-02 16:28:51 +00:00
stronk7
6c02f04b5a rename_table() under postgresql completed 2006-10-02 16:27:18 +00:00
stronk7
bb7e5c472c rename_table() under oracle completed 2006-10-02 16:19:48 +00:00
stronk7
2f21754261 With the emotion, I forgot to delete some debug lines... :-P 2006-10-02 15:57:59 +00:00
stronk7
8aaf86642c rename_table() under mssql completed! B-) 2006-10-02 15:56:34 +00:00
moodler
53d052d029 Be a bit more flexible with the extra paths (can be a string or an array) 2006-10-02 15:15:23 +00:00
moodler
b53b73bdb8 Additional paramter for get_string() that allows the calling code to
specify extra locations for strings
2006-10-02 15:08:25 +00:00
moodler
85489a5b42 Various little cleanups 2006-10-02 14:57:00 +00:00
moodler
e9c82dca8f Fixed capability soring on course and coursecat override MDL-6780 2006-10-02 08:57:00 +00:00
toyomoyo
8020a0162f roles and capability support for backups. role mapping is in, please help test, thanks 2006-10-02 08:49:07 +00:00
moodler
203abb60b4 FIxed use of reserved SQL words for MDL-6778 2006-10-02 06:52:21 +00:00
stronk7
a2851e5f55 Basic rename_field() function added.
TODO: Automatic sequence/trigger/check constraint recreation
      under PG, MSSQL & Oracle
2006-10-01 23:02:39 +00:00
stronk7
7c07a93223 Added rename_field() support.
TODO: Sync sequences, triggers and check constraints
2006-10-01 22:54:51 +00:00
stronk7
4de0723f31 Added rename_field() support for mssql 2006-10-01 22:52:30 +00:00
stronk7
b5d61bfd9d Added rename_field() support for MySQL 2006-10-01 22:44:39 +00:00
skodak
1d4d2cebe0 left-hand pane on image upload screen is missing MDL-6759 2006-10-01 16:38:26 +00:00
stronk7
51517ddc6d Avoid some double updates under PG 2006-10-01 16:02:09 +00:00
stronk7
1f0c7fae15 Now PG adds fields in various steps is order to fulfill 7.4 min req 2006-10-01 15:48:29 +00:00
stronk7
2cfea485a6 Added getDefaultValue() for better handling of default values 2006-10-01 15:47:48 +00:00
stronk7
f6ebc34100 Fixed one wrong "return false" plus minor code reorder... 2006-10-01 14:39:50 +00:00
skodak
c58facdd96 New installation with different prefix in one database fails MDL-6614 2006-10-01 09:47:20 +00:00
moodler
937b63ee52 Adding some serious checks to make Moodle break when there is any
select, insert or update on user_students, user_teachers, user_coursecreators,
or user_admins (once roles is installed), because they should not be used
at all and we will drop them soon.
2006-10-01 09:16:49 +00:00
stronk7
abf980a587 Now table renaming is working properly on PostgreSQL
(only renaming of check constraints are pending)
2006-10-01 08:44:55 +00:00
moodler
b16de84980 get_role_users() can now get all the people who have any role in that context,
which is useful
2006-10-01 08:34:36 +00:00
moodler
7ea02fe987 FIxed some typos in get_role_users and count_role_users to do with parent contexts 2006-10-01 07:02:53 +00:00
moodler
0351730630 FIxed a debugging message 2006-10-01 06:39:20 +00:00
moodler
04186cd965 Improvements to the user listing, security and appearance 2006-10-01 06:18:18 +00:00