Commit Graph

41 Commits

Author SHA1 Message Date
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
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
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
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
9770914d5f Now MySQL looks for existing index names. MDL-9256
Merged from MOODLE_18_STABLE
2007-04-08 22:59:54 +00:00
3b34bc7f39 Now MSSQL naming of objects introspects to avoid duplicates. MDL-7376 2007-01-28 18:18:28 +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
8b755329fa Adding PIVOT as MSSQL reserved word
Merged from MOODLE_17_STABLE
2006-10-28 23:13:26 +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
ae5a83e6fd rename_field() under mssql completed 2006-10-02 17:42:14 +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
4de0723f31 Added rename_field() support for mssql 2006-10-01 22:52:30 +00:00
a59f3a34f3 Initial commit of rename_table(). Not ended! 2006-09-30 22:40:15 +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
6e152cc621 Now basic types of conversion (int2char, char2int, number2char, char2number)
are working properly under all RDBMS.
2006-09-29 17:49:04 +00:00
1a275daaaf some more settings go to XMLDBGenerator (as they are default) 2006-09-28 18:31:28 +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
cc3779694a MSSQL alter field is exactly the standard one but with alter_column_skip_default enabled 2006-09-24 15:54:46 +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
c282203d84 mssql doesn't support default clause in alter table alter column 2006-09-23 21:22:02 +00:00
7f5f956cf5 Allow to specify NULL clauses for some generators, mainly because
some mssql drivers use to create everything as NOT NULL by default.
2006-09-21 17:04:28 +00:00
eef868d17d major whitespace cleanup - fixed trailng whitespace in new files and admin area 2006-09-20 21:00:45 +00:00
d256743c5b When dropping columns, look for check constraints and drop them too. 2006-09-12 22:13:45 +00:00
ec68af222e Ops, forgot to delete some debug... :-/ 2006-09-12 21:30:13 +00:00
2a02841762 MSSQL needs to drop the default constraint before being able to drop the column 2006-09-12 21:24:03 +00:00
b96aaad125 Concat operator for mssql added 2006-08-27 22:24:09 +00:00
c8a418b8d6 Max for decimal type in MSSQL is 38 cc. 2006-08-26 00:50:09 +00:00
860b55463f Normalizing a bit all the float/double generators. 2006-08-22 22:10:09 +00:00
88534572c3 Reducing the list of MSSQL reserved words to the efectively
reserved words (the previous list included a lot of words
reserved by SQLXX standars but not by MSSQL)
2006-08-21 12:28:46 +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
6aa7885eb5 Minor adjustments to some comments. 2006-08-16 23:17:28 +00:00
ada5648103 Fixing some potential problems with prefixes and object names. 2006-08-16 23:01:46 +00:00
d7bf5f9917 Initial version of the mssql generator 2006-08-16 21:46:08 +00:00