141 Commits

Author SHA1 Message Date
skodak
d2d9ba7d64 MDL-14326 fixed incorrect requires 2008-09-03 07:48:19 +00:00
tjhunt
2c746a6665 Fix typo. 2008-08-19 05:47:06 +00:00
stronk7
84774c552c upgrade_mod_savepoint() implemented in XMLDB Editor generators. MDL-15343 2008-07-18 22:18:47 +00:00
stronk7
ef088e70e7 MDL-14956 DDL exceptions (code suggested by XMLDB Editor) 2008-06-22 18:26:55 +00:00
skodak
eee5d9bb85 MDL-14956 DDL exceptions 2008-06-22 16:51:55 +00:00
dongsheng
bcc45748f5 "MDL-14129, fix print_error" 2008-06-15 11:25:45 +00:00
skodak
b1f93b1512 MDL-15246 moving all remaining ddl function to adminlib, keeping old lib/ddllib.php only for BC withexisting code; fixed inline docs related to ddl 2008-06-15 10:32:50 +00:00
skodak
294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
skodak
fd1d37290f comment fix 2008-06-05 14:10:55 +00:00
skodak
eb2ce497bc comment fix 2008-06-05 14:09:59 +00:00
skodak
a5d424df7c MDL-14679 converted some get/set_field() 2008-06-02 21:39:23 +00:00
skodak
fd0e6640cc MDL-14679 fixed some more $db's 2008-05-31 22:18:41 +00:00
thepurpleblob
ac1dc9845a MDL-14854
Changed the language strings to something more sensible as per Petr's comments.
2008-05-29 10:53:30 +00:00
stronk7
cdb1e987e6 All fields, keys and indexes in suggested PHP core are using $dbman. MDL-14941 2008-05-23 22:42:45 +00:00
stronk7
63dd5a626a table suggested PHP is using $dbman now. MDL-14941 2008-05-23 22:34:53 +00:00
stronk7
82bba3e4d5 And also conditionally create/drop indexes and fields. MDL-14955 2008-05-23 22:26:08 +00:00
stronk7
70080fde65 Conditionally execute create/drop table dbmanager functions. MDL-14955 2008-05-23 22:24:00 +00:00
stronk7
69b80cc2eb 4th iteration committed: xmldb_field, xmldb_index and xmldb_key "public" methods changed + debugging of deprecated ones until Moodle 2.1 . MDL-14863 2008-05-22 00:09:59 +00:00
stronk7
5eaa41e8bc 3rd iteration committed: xmldb_table "public" methods changed + debugging of deprecated ones until Moodle 2.1 . MDL-14863 2008-05-21 17:55:23 +00:00
stronk7
a8cb94f66f MDL-14863 - 1st iteration: lowercase XMLDB table, field, index, key and statement +
wrapper class to support old syntax (no changes in public API yet)
2008-05-20 23:24:40 +00:00
stronk7
46293bd7b7 MDL-14863 - 1st iteration: lowercase XMLDB constants, object, file and structure (no changes in public API yet) 2008-05-20 17:06:26 +00:00
stronk7
c6ad174104 There was one "phantom" test + minor improvements for robustness. 2008-05-19 00:16:48 +00:00
skodak
f33e1ed4ae MDL-14679 ok, here is the big patch with new dmllib and ddlib API, some code is already converted, XML db editor works; see tracker for details of regressions and TODOs 2008-05-15 21:40:00 +00:00
thepurpleblob
25b05ce567 Whoops. missed a string. 2008-05-15 15:24:03 +00:00
thepurpleblob
dfac8649c7 MDL-14854
Add facility to XMLDB editor to check for inconsistent field defaults.
2008-05-15 14:47:08 +00:00
dongsheng
957f6fc9d2 "MDL-14460, fix all the other get_context_instance, merged from MOODLE_19_STABLE" 2008-05-02 04:37:02 +00:00
dongsheng
6967cb2d42 MDL-14129, fix print_error() call 2008-04-11 07:49:07 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
skodak
8293c75198 MDL-6786 Improved dropping of block and module tables during uninstall; merged from MOODLE_19_STABLE 2008-01-03 15:03:32 +00:00
tjhunt
7588679f7a Teach XMLDB about the local/db folder, but only include it if the local folders exists. 2007-12-19 15:06:51 +00:00
stronk7
dcbef1994e Now PHP code generated by the XMLDB editor automatically
adds calls to upgrade_main_savepoint(). MDL-11698

Merged from MOODLE_19_STABLE
2007-11-01 23:24:36 +00:00
stronk7
df7cb97973 Adding support to course/formats from within the editor. MDL-11842
Merged from MOODLE_19_STABLE
2007-10-19 16:52:34 +00:00
nicolasconnault
b7064779f5 Updated copyright notice in header 2007-10-10 05:25:14 +00:00
stronk7
e4a2d75456 group/db isn't a source of xml files anymore. MDL-11431 2007-09-24 22:32:31 +00:00
stronk7
964170c69c One more default and useless comment deleted. MDL-11385 2007-09-24 19:36:24 +00:00
stronk7
4a78d22fc3 Deleting some default comments that the XMLDB editor was
generating here and there. Only the table one remains. MDL-11385
2007-09-24 18:40:49 +00:00
stronk7
c2f8bff82c Now assignment submodules are handled by the XMLDB editor. Pending commit. 2007-09-19 08:04:11 +00:00
stronk7
3e38ceb837 Added some new test to check double creation
and deletion of enums (check constrainsts). MDL-9356
2007-09-11 18:35:23 +00:00
stronk7
367b80f5ee Added one new test to change precission of a numeric field
to a smaller one. It breaks Oracle in its current status.

Merged from MOODLE_18_STABLE
2007-09-04 22:13:30 +00:00
stronk7
dfd535fac9 Now, under MySQL, a check of wrongly signed ints is also performed. MDL-11038 2007-08-31 23:44:37 +00:00
stronk7
498a550d01 Adding one utility to detect and propose DB changes in
order to have all the int(10) fields properly defined. MDL-11038

Test, test, test!!!
2007-08-28 23:03:40 +00:00
stronk7
ec2e146dc5 New tables must have the id unsigned.
Merged from MOODLE_18_STABLE
2007-08-27 14:43:30 +00:00
nicolasconnault
e295df447f MDL-10870 All files updated to new build_navigation() method. 2007-08-17 11:18:58 +00:00
stronk7
b4c0ce9fcb Wrong default specified (and detected!). Fixed. 2007-08-11 22:06:46 +00:00
stronk7
365a18e4b8 Reverting deleted addslashes(). They are needed for proper testing after all.
Merged from MOODLE_18_STABLE
2007-08-09 18:11:48 +00:00
stronk7
0e60e586cf Merging latest test changes from MOODLE_18_STABLE 2007-08-09 18:03:26 +00:00
stronk7
40f5b3011a Ensuring we always retrofit lowercase tables. Part of MDL-10413.
Merged from MOODLE_18_STABLE
2007-07-17 18:49:22 +00:00
stronk7
72e42141cf Now SQL sentences are all together and with proper terminators.
Tested against MySQL, PostgreSQL and MSSQL. MDL-7357
2007-07-09 18:03:47 +00:00
stronk7
67dc1f78c6 Reverting to previous version to respect cross-db. Final
tested solution arriving in hours. MDL-7357

Merged from MOODLE_18_STABLE
2007-07-09 17:17:13 +00:00
moodler
95b31d202b Merged formatting fix for MDL-7357 2007-07-09 03:56:58 +00:00