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
dc7c388280
MySQL doesn't have check constraints. We use enums instead.
2006-10-02 17:02:07 +00:00
b5d61bfd9d
Added rename_field() support for MySQL
2006-10-01 22:44:39 +00:00
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
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
b899d9bf1d
Added support to change_field_enum() across all RDBMS
2006-09-30 17:03:17 +00:00
9af19c728d
Extendig use of new getTableName() over all generators
2006-09-30 12:13:07 +00:00
d54f85efa6
minor adjust. keytype to drop keys is not needed anymore. now it's
...
defined in mysql generator (the only one needing it)
2006-09-28 21:47:36 +00:00
9c46a7e6f9
changed mysql drop index syntax. Nothing relevant.
2006-09-28 20:11:30 +00:00
4df8b6cdfc
some more settings go to XMLDBGenerator (as they are default)
2006-09-28 18:39:33 +00:00
662244cb77
Deleting some parameters that aren't needed anymore. Code will
...
decide if creating underlying indexes for keys automatically now.
2006-09-28 17:02:49 +00:00
618a982eed
Now all the generators support creating and dropping indexes
2006-09-26 23:15:20 +00:00
812e363a39
Now generators support to add/drop column defaults
2006-09-25 18:22:06 +00:00
b0ec41af8a
Prevent Unique Keys generation. Instead use unique indexes at DB level.
...
With this, all we'll have are PRIMARY KEYS + INDEXES, that are pretty
well supported by ADODB MetaXXX functions.
Both Unique and Foreign Keys will be used once ADODB support them and
the relational mode was enforced.
2006-09-24 09:38:56 +00:00
f8c485b071
mysql alter table alter column is "modify column"
2006-09-23 21:23:05 +00:00
eef868d17d
major whitespace cleanup - fixed trailng whitespace in new files and admin area
2006-09-20 21:00:45 +00:00
f0b50bbe89
Now the "AFTER" clause is supported by add_field()
2006-09-12 22:58:04 +00:00
393e7cc373
where BIG should be LONG...
2006-08-30 16:14:44 +00:00
914597ee9f
...where = should be == ...
2006-08-30 16:06:16 +00:00
9dbc13db9a
Concat operator for mysql added
2006-08-27 22:25:41 +00:00
860b55463f
Normalizing a bit all the float/double generators.
2006-08-22 22:10:09 +00:00
16f07ff2b0
MySQL doesn't like any name on its primary keys (neither "primary")
2006-08-20 18:03:55 +00:00
9dcc6300a7
Now all the XMLDBxxx->geSQL functions return an array of statements to be
...
executed (easily to handle them in the installation/upgrade process
individually. Also, it's possible to specify one statement end.
2006-08-17 19:20:45 +00:00
ada5648103
Fixing some potential problems with prefixes and object names.
2006-08-16 23:01:46 +00:00
866c0747e8
Line feed added + small bug
2006-08-16 22:23:39 +00:00
aacf02c55b
Proper parent init and comment close
2006-08-16 17:53:24 +00:00
e54ae5264b
Partial rework of the mysql generator. Working now.
2006-08-16 17:43:55 +00:00
edc8779b92
Latest changes, nothing important.
2006-08-15 11:30:32 +00:00
82b7ceb568
Just adding support for reserved words....
2006-08-15 10:15:52 +00:00
8165877a17
Initial commit on HEAD of all the XMLDB stuff.
2006-08-15 09:14:31 +00:00