b7064779f5
Updated copyright notice in header
2007-10-10 05:25:14 +00:00
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
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
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
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
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
faa1a939f0
Now Oracle is also able to detect its check constraints per field.
2007-09-10 22:30:26 +00:00
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
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
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
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
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
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
8101dccb8e
MDL-9920 Allowed xmldb to create 32-bit serial fields if specified, in postgres
2007-05-24 15:18:35 +00:00
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
9770914d5f
Now MySQL looks for existing index names. MDL-9256
...
Merged from MOODLE_18_STABLE
2007-04-08 22:59:54 +00:00
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
cfed9721ad
DB escaping comments. MDL-8918
...
Merged from MOODLE_18_STABLE
2007-03-15 19:03:07 +00:00
bb33fb6dd7
Limit table comments to 60cc for MySQL. MDL-7765
...
Merged from MOODLE_17_STABLE
2007-02-09 00:34:30 +00:00
3b34bc7f39
Now MSSQL naming of objects introspects to avoid duplicates. MDL-7376
2007-01-28 18:18:28 +00:00
c5e065f817
Clarify a bit getNameForObject correct usage.
2007-01-28 11:46:17 +00:00
5a08ca80ed
Oracle now introspects DB to fetch names of
...
sequences and triggers. MDL-6880
2007-01-28 11:42:10 +00:00
2a82cacf0b
getting tired of restore my test Oracle DB. Typo!
2007-01-28 00:30:22 +00:00
fec5fe881e
Quote field names in rename in order to allow renaming of reserved words.
2007-01-28 00:20:54 +00:00
6210ae1d43
Now Oracle naming of objects introspects to avoid duplicates. MDL-7376
2007-01-27 22:11:04 +00:00
d21a42d7cf
Small improvement. One less iteration pero object name requested.
2007-01-27 20:08:19 +00:00
d65980452a
Updated comment.
2007-01-27 17:41:31 +00:00
a1b2780c8e
Now Postgres naming of objects introspects to avoid duplicates. MDL-7376
2007-01-27 17:37:39 +00:00
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
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
cbcde5d8af
Adding initial support for mysqli databases. MDL-7967
2007-01-08 18:33:03 +00:00
8b755329fa
Adding PIVOT as MSSQL reserved word
...
Merged from MOODLE_17_STABLE
2006-10-28 23:13:26 +00:00
04c9f8dcc2
One typo (!==) was preventing defaults to be properly calculated for integers.
...
Thanks to Nigel McNie for being on that!
Merged from MOODLE_17_STABLE
2006-10-21 16:36:16 +00:00
bf42ceed7f
Addding support for the new mssql_n ADOdb driver that,
...
transparently, prepends the N char for all the string
literals being set to MSSQL (until MS Unicode - standard-
support will arrive).
Merged from MOODLE_17_STABLE
2006-10-19 17:29:37 +00:00
d5eff6795e
Added support for getSequenceFromDB() to PG.
...
Merged from MOODLE_17_STABLE
2006-10-16 17:36:13 +00:00
906eebf6ad
Small change in rename_field() so objects won't become modified at all
...
in the process.
Merged from MOODLE_17_STABLE
2006-10-12 12:28:36 +00:00
354bb6035a
And now, Moodle is able to work with the odbc_mssql driver. Simple! B-)
2006-10-09 22:29:52 +00:00
abbd460ff9
Adding getSequenceFromDB() for Oracle in order to detect the correct
...
sequence name in the insert_record() function.
2006-10-08 09:36:33 +00:00
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
ae5a83e6fd
rename_field() under mssql completed
2006-10-02 17:42:14 +00:00
c562997ff8
rename_field() under oracle completed
2006-10-02 17:06:37 +00:00
86bb076fc4
rename_field() under postgresql completed.
2006-10-02 17:02:35 +00:00
dc7c388280
MySQL doesn't have check constraints. We use enums instead.
2006-10-02 17:02:07 +00:00
f14080b0ad
Prevent "id" fields to be renamed in generators
2006-10-02 16:47:02 +00:00
0e204a1012
Some adjustments to be able to get names without prefix
2006-10-02 16:28:51 +00:00
6c02f04b5a
rename_table() under postgresql completed
2006-10-02 16:27:18 +00:00
bb7e5c472c
rename_table() under oracle completed
2006-10-02 16:19:48 +00:00
2f21754261
With the emotion, I forgot to delete some debug lines... :-P
2006-10-02 15:57:59 +00:00
8aaf86642c
rename_table() under mssql completed! B-)
2006-10-02 15:56:34 +00:00
7c07a93223
Added rename_field() support.
...
TODO: Sync sequences, triggers and check constraints
2006-10-01 22:54:51 +00:00