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
moodler
6c95827fdf
New implementation of loginas see MDL-6626
2006-10-01 05:46:55 +00:00
moodler
9343a7333a
Fixed a bug where load_user_capability() was not checking in the
...
specified context when it was provided (only in the parents)
2006-10-01 05:27:36 +00:00
moodler
afe6d00384
FIxed a typo mod->id --> mod->cm
2006-10-01 04:56:43 +00:00
stronk7
20c559dd8d
Now Oracle supports table renaming (both sequence and triggers
...
are kept on sync with the new table name)
2006-09-30 23:48:34 +00:00
stronk7
4702d62e32
Change slighty the style of RenameKey and RenameIndex functions.
2006-09-30 22:59:10 +00:00
stronk7
a59f3a34f3
Initial commit of rename_table(). Not ended!
2006-09-30 22:40:15 +00:00
skodak
8ad2207965
fixed Fatal error: Call to undefined function: print_recent_activity() when adding Recent Activity as a sticky block MDL-6437 and blocks block database MDL-5931
2006-09-30 21:02:09 +00:00
skodak
ba8d802720
MDL-6673 duplicate capabilities in list
2006-09-30 20:11:44 +00:00
skodak
a1069b070a
MDL-6696 Default country doesn't display on dropdown menu
2006-09-30 19:46:10 +00:00
stronk7
9c4ee55b6c
Added rename_key()
...
Note that this is one EXPERIMENTAL function and shouldn't be used
by you in production code EVER!
2006-09-30 19:44:49 +00:00
stronk7
57770f7a50
Adding support to rename_key()
...
Note that this is one EXPERIMENTAL function and shouldn't be used
by you in production code EVER!
2006-09-30 19:44:16 +00:00
stronk7
e77fd021e6
Implemented rename_key()
...
Note that this is one EXPERIMENTAL function and shouldn't be used
by you in production code EVER!
2006-09-30 19:43:16 +00:00
stronk7
6c89dc5514
Added rename_index()
...
Adding support for index renaming. Note that MySQL doesn't support this
but this shouldn't be important at all, mainly because, under xmldb,
accesses to index-names are always done with find_index_name() and
never explicity.
Anyway, this function could be useful in the future to normalize index
names in some Health center or another similar place.
2006-09-30 18:24:14 +00:00
stronk7
1c86ef5b1c
Adding support for index renaming. Note that MySQL doesn't support this
...
but this shouldn't be important at all, mainly because, under xmldb,
accesses to index-names are always done with find_index_name() and
never explicity.
Anyway, this function could be useful in the future to normalize index
names in some Health center or another similar place.
2006-09-30 18:23:00 +00:00
stronk7
61af97e76b
Added new function change_field_enum()
2006-09-30 17:06:20 +00:00
stronk7
b899d9bf1d
Added support to change_field_enum() across all RDBMS
2006-09-30 17:03:17 +00:00
julmis
9337f3e48d
Merging fixes from MOODLE_16_STABLE
2006-09-30 16:07:43 +00:00
stronk7
3e1861cc87
Applying the field_exists() check to add and drop fields.
2006-09-30 15:48:23 +00:00
stronk7
342da808c5
New function field_exists() to detect if one field exists
2006-09-30 15:35:32 +00:00
stronk7
73d111a820
Add some checks to detect if one table exists before creating or
...
dropping it. Part of MDL-6614
2006-09-30 15:19:56 +00:00
stronk7
7471f3f0dd
Adding some debugging() for some controlled actions.
2006-09-30 15:15:34 +00:00
stronk7
ed37b15464
Moving some uses of find_index_name() to index_exists()
2006-09-30 15:00:46 +00:00
stronk7
cf9a1a40f1
Fixed typo
2006-09-30 14:59:03 +00:00
stronk7
4103c3545c
Prevent tables without prefix to be duplicated at install time. MDL-6614
2006-09-30 14:36:52 +00:00
moodler
26ea488855
Don't show progress bar when there's nothing worth showing
2006-09-30 13:52:15 +00:00
stronk7
2719f3e2c9
Inside ddllib, for consistency we call parameters table, field...
...
(without the xmldb_ prefix)
2006-09-30 13:04:17 +00:00
stronk7
a504ba0213
Added index_exists(). One wrapper over find_index_name()
2006-09-30 12:56:39 +00:00
stronk7
512a237ff6
One more use of getTableName() added.
2006-09-30 12:34:17 +00:00
stronk7
9af19c728d
Extendig use of new getTableName() over all generators
2006-09-30 12:13:07 +00:00
stronk7
97b9178459
New getTableName() function to get normalised table names everywhere
2006-09-30 12:03:19 +00:00
stronk7
68bc165bed
Added new function table_exists() to be used later...
2006-09-30 12:01:33 +00:00
stronk7
87c6baf4a1
Ah! forgot to interchange keys and values!
2006-09-30 11:09:44 +00:00
stronk7
ef18962b00
Execute the index_get_name() silently to avoid a lot of
...
output in the install/upgrade process. Original db->debug
is re-set to their original status once executed.
2006-09-30 10:54:37 +00:00
stronk7
6e152cc621
Now basic types of conversion (int2char, char2int, number2char, char2number)
...
are working properly under all RDBMS.
2006-09-29 17:49:04 +00:00
moodler
76389cec17
Fixed the upgrade from 1.6.x. The role->shortname field was not being created.
2006-09-29 06:43:42 +00:00