38 Commits

Author SHA1 Message Date
Shamim Rezaie
934c2ee1b6 MDL-58584 core_ddl: getDropTableSQL should not do more than what it says 2020-02-03 15:07:15 +11:00
Tim Hunt
5abc431335 MDL-63020 ddl: fix nullable unique indexes in OCI and MS SQL
This works-around the default non-standard behaviour of these DB engines.
2018-09-20 17:41:22 +01:00
David Mudrák
457eaef9ec MDL-32113 xmldb: Remove hard-coded exceptions for long number fields
We are going to unify the maximum supported precision of all numeric
fields to 38 digits (which are the current Oracle and MSSQL limits). Get
rid of hard-coded exceptions for longer fields.
2017-12-21 15:37:08 +01:00
Dan Poltawski
b3e2aaebc3 MDL-36764 ddl/oracle: fix misleading comment 2012-11-22 10:05:10 +08:00
Petr Skoda
5a070f0477 MDL-32003 fix phpdocs in DDL layer 2012-06-17 22:56:28 +02:00
Petr Skoda
a66b2ae4f4 MDL-32434 deprecate drop_temp_table() in favour of drop_table() 2012-04-15 12:23:15 +02:00
Petr Skoda
9b3323b8be MDL-32434 allow database_manager->drop_table() for temporary tables 2012-04-13 16:58:17 +02:00
Petr Skoda
05aae0a571 MDL-29514 drop support for enum data types 2012-03-10 21:36:48 +01:00
Petr Skoda
e9e4a4a672 MDL-27982 convert all signed to unsigned and prevent adding of new unsigned columns
Conflicts, amended to use .02 versions:

	lib/db/upgrade.php, version.php
2012-03-06 12:03:59 +01:00
Aparup Banerjee
83a4ee1ea0 MDL-31251 documentation : improved core ddl API phpdocs. (used moodlecheck plugin) 2012-02-10 12:42:46 +08:00
Petr Skoda
2ba8f87a89 MDL-29322 instruct oracle to use current NLS char size when creating VARCHAR2 fields
This solves problems on servers with default configuration where VARCHAR2 sizes are specified in bytes. Also add more reserved words.
2011-09-16 08:51:09 +02:00
Eloy Lafuente (stronk7)
f30a13ab2b MDL-26333 ddl - better/safer temp column names 2011-02-09 17:36:57 +01:00
Petr Skoda
c86f538116 MDL-21249 improved php docs and adding direct access prevention in ddl 2010-07-25 12:57:03 +00:00
Petr Skoda
a3790ed5db a few more DDL comment typos 2010-05-21 18:42:50 +00:00
Eloy Lafuente
10f375aa2e MDL-22076 temptables - warn and dropped on disposal 2010-04-21 16:12:27 +00:00
Eloy Lafuente
dd884a3ac5 NOBUG: Get back Oracle to normality (fix trigger/seq generation) after latest cache changes 2010-03-18 01:50:32 +00:00
Petr Skoda
117bd74897 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 11:31:16 +00:00
stronk7
15a0ffc8f0 MDL-20349 find_sequence_name() is out. No need to use it anymore. 2009-10-11 21:52:40 +00:00
stronk7
2b29d0fa83 MDL-17491 oci native driver: alter column from TEXT to integer/number now working 2009-09-28 23:16:55 +00:00
stronk7
faceaf5580 MDL-14679: mssql and oracle generators now supporting new temptables impl. 2009-09-28 18:17:59 +00:00
stronk7
31c05684c3 MDL-17491 oracle driver: specify cache size always (20 = RDBMS default) 2009-09-25 23:21:18 +00:00
stronk7
24dc733e16 MDL-17491 oracle native driver: when renaming tables, 1st task is to drop
the associated on insert trigger, to avoid problems later.
2009-09-25 23:08:32 +00:00
stronk7
7d9c92a846 MDL-17491 oracle native driver: disable sequence cache before renaming, enable later 2009-09-24 21:52:23 +00:00
stronk7
8928d9256c Better handling of FLOATS in oracle generator 2009-09-24 16:40:43 +00:00
stronk7
96158ee548 Properly truncating temp tables before dropping them. 2009-09-22 20:26:23 +00:00
stronk7
b1ca138716 SQL generators must not execute changes in DB. Just provide the needed SQL
in order to make database_manager to execute it. reset_sequence reimplemented.
2009-08-31 14:23:40 +00:00
skodak
94b6329544 MDL-14679 license header fixes 2009-06-12 08:44:49 +00:00
stronk7
2d2d79ef49 MDL-18577 drop enums support - step3: Drop enums from generator classes. Only code used to drop enums remains until Moodle 2.1 2009-05-01 23:49:31 +00:00
skodak
be415e95be MDL-17354 moved reset_sequence into dbmanager 2008-11-21 21:40:50 +00:00
skodak
245ac55791 MDL-14679 last forgotten bits of dml conversion 2008-06-09 19:48:24 +00:00
skodak
21a7e260fc MDL-15181 temp table support in ddl/dml 2008-06-07 14:57:47 +00:00
skodak
b922e86b7a MDL-15181 temp table support in ddl/dml 2008-06-07 14:41:01 +00:00
skodak
0b2e23c4eb MDL-14974 fixed aro regression - sorry 2008-05-25 11:11:45 +00:00
skodak
a7544e377a MDL-14974 improved columns caching implementation 2008-05-25 09:31:38 +00:00
stronk7
4d3e94b40f Now oracle generator is also reentrant. MDL-14897 2008-05-25 02:42:06 +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
ed55f6682b Make generators reentrant. MDL-14897 2008-05-19 03:04:41 +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