
|
If you were logged in you would be able to see more operations.
|
|
|
Moodle
MDL-14679
Created: 22/May/08 11:44 PM
Updated: 26/May/08 08:49 AM
|
|
| Component/s: |
Database SQL/XMLDB
|
| Affects Version/s: |
2.0
|
| Fix Version/s: |
2.0
|
|
|
Modify the suggested code by XMLDB editor to make all the creation functions (create_table, create_index...) to be executed within one:
if (!table_exists...)
block.
Right now, create_table() itself checks this, returning true and we are going to change this to return false. So conditions will be necessary (or exception handling).
|
|
Description
|
Modify the suggested code by XMLDB editor to make all the creation functions (create_table, create_index...) to be executed within one:
if (!table_exists...)
block.
Right now, create_table() itself checks this, returning true and we are going to change this to return false. So conditions will be necessary (or exception handling). |
Show » |
|
I've added conditions to create/drop table/field/index in the PHP generated by the Editor.
Uhm... I'm not 100% sure this is the best behaviour... should all the rest of manager functions be executed within those conditions too? Makes things ugly...
Anyway, plz, take a look to current code, and feel free to comment... ciao :-)