stronk7
8aaf86642c
rename_table() under mssql completed! B-)
2006-10-02 15:56:34 +00:00
stronk7
7c07a93223
Added rename_field() support.
...
TODO: Sync sequences, triggers and check constraints
2006-10-01 22:54:51 +00:00
stronk7
4de0723f31
Added rename_field() support for mssql
2006-10-01 22:52:30 +00:00
stronk7
b5d61bfd9d
Added rename_field() support for MySQL
2006-10-01 22:44:39 +00:00
stronk7
51517ddc6d
Avoid some double updates under PG
2006-10-01 16:02:09 +00:00
stronk7
1f0c7fae15
Now PG adds fields in various steps is order to fulfill 7.4 min req
2006-10-01 15:48:29 +00:00
stronk7
2cfea485a6
Added getDefaultValue() for better handling of default values
2006-10-01 15:47:48 +00:00
stronk7
f6ebc34100
Fixed one wrong "return false" plus minor code reorder...
2006-10-01 14:39:50 +00:00
skodak
c58facdd96
New installation with different prefix in one database fails MDL-6614
2006-10-01 09:47:20 +00:00
stronk7
abf980a587
Now table renaming is working properly on PostgreSQL
...
(only renaming of check constraints are pending)
2006-10-01 08:44:55 +00:00
stronk7
20c559dd8d
Now Oracle supports table renaming (both sequence and triggers
...
are kept on sync with the new table name)
2006-09-30 23:48:34 +00:00
stronk7
4702d62e32
Change slighty the style of RenameKey and RenameIndex functions.
2006-09-30 22:59:10 +00:00
stronk7
a59f3a34f3
Initial commit of rename_table(). Not ended!
2006-09-30 22:40:15 +00:00
stronk7
57770f7a50
Adding support to rename_key()
...
Note that this is one EXPERIMENTAL function and shouldn't be used
by you in production code EVER!
2006-09-30 19:44:16 +00:00
stronk7
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
stronk7
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
stronk7
b899d9bf1d
Added support to change_field_enum() across all RDBMS
2006-09-30 17:03:17 +00:00
stronk7
ed37b15464
Moving some uses of find_index_name() to index_exists()
2006-09-30 15:00:46 +00:00
stronk7
4103c3545c
Prevent tables without prefix to be duplicated at install time. MDL-6614
2006-09-30 14:36:52 +00:00
stronk7
512a237ff6
One more use of getTableName() added.
2006-09-30 12:34:17 +00:00
stronk7
9af19c728d
Extendig use of new getTableName() over all generators
2006-09-30 12:13:07 +00:00
stronk7
97b9178459
New getTableName() function to get normalised table names everywhere
2006-09-30 12:03:19 +00:00
stronk7
6e152cc621
Now basic types of conversion (int2char, char2int, number2char, char2number)
...
are working properly under all RDBMS.
2006-09-29 17:49:04 +00:00
stronk7
599caff8c5
prevent nulls to become nulls (oracle error)
...
and defaults null to become defaults null
when temporary columns are used
2006-09-28 23:06:04 +00:00
stronk7
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
stronk7
ac5ff0e787
fixed one wrong constant
2006-09-28 20:12:00 +00:00
stronk7
9c46a7e6f9
changed mysql drop index syntax. Nothing relevant.
2006-09-28 20:11:30 +00:00
stronk7
4690f076ca
Now keys and indexes are PERFECT (argh, Oracle, once more was causing problems)
2006-09-28 18:56:21 +00:00
stronk7
4df8b6cdfc
some more settings go to XMLDBGenerator (as they are default)
2006-09-28 18:39:33 +00:00
stronk7
1a275daaaf
some more settings go to XMLDBGenerator (as they are default)
2006-09-28 18:31:28 +00:00
stronk7
fac17f427f
add_key() and drop_key() are working (with sync of undelying
...
indexes automated)
2006-09-28 17:25:00 +00:00
stronk7
0852990f9b
Deleting some parameters that aren't needed anymore. Code will
...
decide if creating underlying indexes for keys automatically now.
Also, add_key() and drop_key() are working (with sync of undelying
indexes automated)
2006-09-28 17:20:21 +00:00
stronk7
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
stronk7
42d1fc2f3f
XMLDBTable wrappers to create and drop indexes
2006-09-26 23:16:09 +00:00
stronk7
618a982eed
Now all the generators support creating and dropping indexes
2006-09-26 23:15:20 +00:00
stronk7
b0d8444349
Fix one place where index->type was being used instead of index->unique
2006-09-26 22:46:05 +00:00
stronk7
48eac31328
Replaced XMLDB own implementation of the concat function to use
...
the new, ultra-cool, ADOdb based, concat_sql(). Thanks, Martin Langhoff!
2006-09-26 18:34:48 +00:00
stronk7
1d5071a57e
Don't CREATE OR REPLACE TRIGGER but just CREATE it
...
(so we'll be able to detect duplicate name with an
error instead of getting false success)
2006-09-26 18:10:27 +00:00
stronk7
0db2d6bb98
Prevent NOT NULL fields to have one DEFAULT NULL clause
2006-09-25 21:44:21 +00:00
stronk7
812e363a39
Now generators support to add/drop column defaults
2006-09-25 18:22:06 +00:00
stronk7
11b75afe8b
Now Oracle generator is able to change the precision and decimals of
...
one column by using one temp column. This prevents ORA-1440 errors.
2006-09-24 17:39:20 +00:00
stronk7
cc3779694a
MSSQL alter field is exactly the standard one but with alter_column_skip_default enabled
2006-09-24 15:54:46 +00:00
stronk7
d3b93bd26a
Add skip parameters to one getFieldSQL call requiring them
2006-09-24 15:26:49 +00:00
stronk7
ff936e2c2d
Finally PostgreSQL seems to be working now.... I've tried to do
...
it as clever as possible detecting when column specs change in
order to reduce the number of temp-update-drop-rename operations
2006-09-24 15:25:49 +00:00
stronk7
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
stronk7
19c8321e07
Now Oracle supports the first part of alter table alter column statements
2006-09-24 00:02:34 +00:00
stronk7
0e9e0b3bb3
adding support for alter columns
...
(not finished yet)
2006-09-23 21:24:51 +00:00
stronk7
f8c485b071
mysql alter table alter column is "modify column"
2006-09-23 21:23:05 +00:00
stronk7
c282203d84
mssql doesn't support default clause in alter table alter column
2006-09-23 21:22:02 +00:00
stronk7
4feeadeb59
Minor fix to be able to drop tables without prefix properly (adodb_log)
2006-09-22 16:16:48 +00:00