Commit graph

189 commits

Author SHA1 Message Date
stronk7
9c9fad9d71 Moving some old XMLDBxxx (deprecated) objects to the end of the file. Some PHP releases
have problems finding new extended xmldb_xxxx objects if they haven't been defined before.
2008-05-24 23:14:42 +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
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
stronk7
926c6aa9e3 Implemented more accurate way to retrieve trigger names. MDL-14567 ; merged from 19_STABLE 2008-04-26 22:46:03 +00:00
stronk7
35107f8636 Respect case of enumvalues. MDL-12803 ; Merged from MOODLE_19_STABLE 2008-01-02 16:49:11 +00:00
stronk7
051b9588d1 XMLDB_UNSIGNED only applicable to number types. MDL-11662
Merged from MOODLE_19_STABLE
2007-12-08 18:20:15 +00:00
nicolasconnault
b7064779f5 Updated copyright notice in header 2007-10-10 05:25:14 +00:00
stronk7
dc6cc11a72 Annihilate one wrong use of getNameForObject() now
that we are able to detect REAL check constraints names
2007-09-11 19:39:28 +00:00
stronk7
da40b0beab And now, the unused getStandardNameForObject() is out. Back to the
exclusive getNameForObject() function, ONLY USED TO CREATE NEW
OBJECTS, NEVER TO GUESS THE NAME OF EXISTING ONES. MDL-9356
2007-09-11 19:37:13 +00:00
stronk7
3d74e77aae Now we aren't guessing check constraint names
but getting the real ones under Oracle. MDL-9356
2007-09-11 19:08:11 +00:00
stronk7
92529a70fa Now we aren't guessing check constraint names
but getting the real ones under MSSQL. MDL-9356
2007-09-11 19:07:17 +00:00
stronk7
f0dfc20124 Now we aren't guessing check constraint names
but getting the real ones under PostgreSQL. MDL-9356
2007-09-11 19:06:38 +00:00
stronk7
faa1a939f0 Now Oracle is also able to detect its check constraints per field. 2007-09-10 22:30:26 +00:00
stronk7
a347e5e439 Preparing getCheckConstraintsFromDB() to retrieve the check constraint
defined for one field. Not used yet but I need it in CVS now.
2007-09-10 22:00:24 +00:00
stronk7
4215e41ecb Extending getCheckConstraintsFromDB() to support a new parameter
used to filter what field in the table we want to know
its check constraints
2007-09-09 16:28:16 +00:00
stronk7
4cc68ea184 Now mysql returns getCheckConstraintsFromDB() in a compatible
way (array of name & description objects) with the check
constraints found in the table
2007-09-09 16:09:00 +00:00
stronk7
16a208f9e6 Now the Oracle XMLDB generator detects changes of precision
in NUMBERs without decimals (virtually INTs) and is able to perform the
change of precision properly

Merged from MOODLE_18_STABLE
2007-09-04 23:18:41 +00:00
stronk7
d6125c4ad5 By default, when creating new fields... they are unsigned. 2007-08-29 10:24:36 +00:00
tjhunt
af999b9095 Temporary fix for MDL-9356 becuase it was blocking a bug I needed to fix. Eloy, please review carefully when you get back from holiday. 2007-08-17 09:59:54 +00:00
stronk7
b4464372af Detect CHAR + NOT NULL FIELDS + '' (empty) defaults. They shouldn't be in
XMLDB definitions at all. Convert the default to the proper one and
output it via xmldb debug.
2007-08-11 21:50:25 +00:00
stronk7
89a9688099 MSSQL requires to drop defaults before performing
one change of type and, sometimes, a change of length.
2007-08-11 00:15:25 +00:00
stronk7
01516fd39a And key fields are lowercased too. End of MDL-10413
Merged from MOODLE_18_STABLE
2007-07-17 18:57:31 +00:00
stronk7
470617ba0a And index fields are lowercased too. Part of MDL-10413
Merged from MOODLE_18_STABLE
2007-07-17 18:55:51 +00:00
stronk7
4d248a2e80 New $CFG->xmldbreconstructprevnext setting to allow edition of XMLDB
out from the XMLDBEditor, ignoring the prev/next stuff, that will be
automatically regenerated by the Editor by simply loading and saving
the edited file. Credit goes to skodak!
2007-07-05 16:24:24 +00:00
sam_marshall
8101dccb8e MDL-9920 Allowed xmldb to create 32-bit serial fields if specified, in postgres 2007-05-24 15:18:35 +00:00
mjollnir_
c68e9d06f6 xmldb: added $CFG options for disabling next / previous value checkings & enforced comment checking. merged from mahara :) 2007-04-20 00:10:52 +00:00
stronk7
84a13375f0 Better approach. Use higher level MetaIndexes() and avoid some MySQL warnings. MDL-9256
Merged from MOODLE_18_STABLE
2007-04-09 00:11:22 +00:00
stronk7
9770914d5f Now MySQL looks for existing index names. MDL-9256
Merged from MOODLE_18_STABLE
2007-04-08 22:59:54 +00:00
stronk7
86041b7e84 Now XMLDBStatements support backslashed single quotes.
Merged from MOODLE_18_STABLE
2007-03-27 20:31:18 +00:00
nicolasconnault
86aae61ee7 MDL-8730: These libxml_* functions are PHP5 only. I've wrapped them in function_exists() conditional structures. 2007-03-26 03:42:22 +00:00
stronk7
c7a311b550 Fix small bug only reproduced in tests about changing field names and
xmldb_field object becoming modified. Novice OOP bug :-(

Merged from MODLE_18_STABLE
2007-03-15 20:02:17 +00:00
stronk7
cfed9721ad DB escaping comments. MDL-8918
Merged from MOODLE_18_STABLE
2007-03-15 19:03:07 +00:00
stronk7
11548d9bf9 Only validate against schema if we have a schema. ;-)
Merged from MOODLE_18_STABLE
2007-02-24 00:05:05 +00:00
stronk7
776dee9c56 Now XMLDB Editor performs check/validation of XML files
before loading them using the best parser available.
MDL-7726 and first part of MDL-8264

Merged from MOODLE_18_STABLE
2007-02-23 20:59:28 +00:00
stronk7
bb33fb6dd7 Limit table comments to 60cc for MySQL. MDL-7765
Merged from MOODLE_17_STABLE
2007-02-09 00:34:30 +00:00
stronk7
3b34bc7f39 Now MSSQL naming of objects introspects to avoid duplicates. MDL-7376 2007-01-28 18:18:28 +00:00
stronk7
c5e065f817 Clarify a bit getNameForObject correct usage. 2007-01-28 11:46:17 +00:00
stronk7
5a08ca80ed Oracle now introspects DB to fetch names of
sequences and triggers. MDL-6880
2007-01-28 11:42:10 +00:00
stronk7
2a82cacf0b getting tired of restore my test Oracle DB. Typo! 2007-01-28 00:30:22 +00:00
stronk7
fec5fe881e Quote field names in rename in order to allow renaming of reserved words. 2007-01-28 00:20:54 +00:00
stronk7
6210ae1d43 Now Oracle naming of objects introspects to avoid duplicates. MDL-7376 2007-01-27 22:11:04 +00:00
stronk7
d21a42d7cf Small improvement. One less iteration pero object name requested. 2007-01-27 20:08:19 +00:00
stronk7
d65980452a Updated comment. 2007-01-27 17:41:31 +00:00
stronk7
a1b2780c8e Now Postgres naming of objects introspects to avoid duplicates. MDL-7376 2007-01-27 17:37:39 +00:00
stronk7
f2daac4e62 Delegate to the isNameInUse() function the request to
see if one object name is in use in the DB (to avoid
duplicates 100%) MDL-7376 (the rest will come tomorrow)
2007-01-27 01:12:18 +00:00
stronk7
97ad23eb26 Bad news. "external" is one reserved word for mssql and we have
one in the the SCORM module.
2007-01-20 17:59:28 +00:00
stronk7
cbcde5d8af Adding initial support for mysqli databases. MDL-7967 2007-01-08 18:33:03 +00:00