228 Commits

Author SHA1 Message Date
Petr Skoda
ac6f1a82f9 MDL-24321 switching to stdClass 2010-09-21 07:57:42 +00:00
Petr Skoda
7c109ea3f0 MDL-24276 "static abstract" combination is deprecated since PHP 5.2, replacing with our coding_style exception 2010-09-19 18:43:52 +00:00
Petr Skoda
209e00185b MDL-24276 abstract static methods not allowed since PHP 5.2, thanks Anthony Borrow for pointing this out 2010-09-18 22:43:51 +00:00
Petr Skoda
9d1ddd3743 fixed spelling errors 2010-09-17 20:20:24 +00:00
Petr Skoda
dd63e0ff65 fixed $table when throwing exception 2010-09-17 20:19:05 +00:00
Petr Skoda
4fdfe0d404 fixed table var 2010-09-17 20:18:41 +00:00
Petr Skoda
524ad88107 fixed funny initialisation of static local variable 2010-09-14 16:14:19 +00:00
Petr Skoda
41a50aa254 MDL-19057 detect missing unique primary key on id columns 2010-09-14 16:13:06 +00:00
Petr Skoda
7e67b7b79e MDL-19057 more create_table tests for broken structure of table 2010-09-13 19:05:46 +00:00
Petr Skoda
844239d3ed MDL-24092 removing STATEMENTS support from install.xml, use db/install.php or db/log.php instead 2010-09-06 11:11:32 +00:00
Petr Skoda
d35ece6cce MDL-23682 new MySQL engine diagnostics + InnoDB is now used instead of MyISAM in new installs if available + improved mysql transaction support 2010-08-18 16:47:00 +00:00
Petr Skoda
c86f538116 MDL-21249 improved php docs and adding direct access prevention in ddl 2010-07-25 12:57:03 +00:00
Eloy Lafuente
b31f126a2a NOBUG: nothing 2010-06-21 16:56:28 +00:00
Petr Skoda
df997f841f MDL-21782 reworked enrolment framework, the core infrastructure is in place, the basic plugins are all implemented; see the tracker issue for list of unfinished bits, expect more changes and improvements during the next week
AMOS START
    MOV [sendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage,enrol_self]
    MOV [configsendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage_desc,enrol_self]
    MOV [enrolstartdate,core],[enrolstartdate,enrol_self]
    MOV [enrolenddate,core],[enrolenddate,enrol_self]
    CPY [welcometocourse,core],[welcometocourse,enrol_self]
    CPY [welcometocoursetext,core],[welcometocoursetext,enrol_self]
    MOV [notenrollable,core],[notenrollable,core_enrol]
    MOV [enrolenddaterror,core],[enrolenddaterror,enrol_self]
    MOV [enrolmentkeyhint,core],[passwordinvalidhint,enrol_self]
    MOV [coursemanager,core_admin],[coursecontact,core_admin]
    MOV [configcoursemanager,core_admin],[coursecontact_desc,core_admin]
    MOV [enrolledincourserole,core],[enrolledincourserole,enrol_manual]
    MOV [enrolme,core],[enrolme,core_enrol]
    MOV [unenrol,core],[unenrol,core_enrol]
    MOV [unenrolme,core],[unenrolme,core_enrol]
    MOV [enrolmentnew,core],[enrolmentnew,core_enrol]
    MOV [enrolmentnewuser,core],[enrolmentnewuser,core_enrol]
    MOV [enrolments,core],[enrolments,core_enrol]
    MOV [enrolperiod,core],[enrolperiod,core_enrol]
    MOV [unenrolroleusers,core],[unenrolroleusers,core_enrol]
AMOS END
2010-06-21 15:30:49 +00:00
Eloy Lafuente
67a2f1c1d7 MDL-22804 hyphens in index names - Now the big-four handle/quote them properly 2010-06-16 16:15:23 +00:00
Petr Skoda
a3790ed5db a few more DDL comment typos 2010-05-21 18:42:50 +00:00
Petr Skoda
72c45dcc1b DDL comment typos 2010-05-21 18:37:22 +00:00
Eloy Lafuente
5cada36315 MDL-22366 upgrade - always drop DB objects conditionally 2010-05-06 16:03:02 +00:00
Petr Skoda
0a03123fcf MDL-22167 removing sqlite because it is not maintained 2010-04-23 17:30:02 +00:00
Eloy Lafuente
10f375aa2e MDL-22076 temptables - warn and dropped on disposal 2010-04-21 16:12:27 +00:00
Eloy Lafuente
a1656ddf79 MDL-21874 - phisics are physics :-P 2010-03-22 09:27:35 +00:00
Eloy Lafuente
90d07fa496 MDL-21874 - ddl object names cache. Don't use cache keys anymore. Leads to conflicts. 2010-03-22 09:24:57 +00:00
Eloy Lafuente
2ab686ee71 MDL-21868 mssql generator - improve integer meta type detection + test 2010-03-21 19:36:50 +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
Eloy Lafuente
38af117a91 NOBUG: partially re-introduce DB object static cache, as we need to avoid dupes
when two indexes are created in the same sentence and initials are the same (contenthash, contextid)
This introduces some problems in Oracle but... better to keep the rest working.
2010-03-18 00:48:48 +00:00
Eloy Lafuente
237e66198d MDL-21834 DDL tests - static caches aren't good for multiple connections in same request 2010-03-17 02:17:26 +00:00
Eloy Lafuente
d61b3d0269 MDL-21834 DDL tests - fix concurrent temp tables for mssql + 1 incorrect test 2010-03-17 01:34:29 +00:00
Eloy Lafuente
fbff152d22 MDL-21834 DDL tests - reveal some problems using concurrent temp tables 2010-03-16 19:02:18 +00:00
Eloy Lafuente
a97c0dd598 MDL-21015 - add optional xmldb_structure cache in the install_one_table_from_xmldb_file()
method. 100x speedup for UnitTestCaseUsingDatabase tests. Defaults to false (old behaviour)
2009-12-01 18:10:51 +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
skodak
0629a32e51 MDL-20624 fixed problem with PREV/NEXT dev hack in unittests 2009-10-22 14:40:29 +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
f713581bc3 MDL-14679 table/column meta cache is reset on each request and DDL operation.
No need to call it with false parameter but in very exceptional ocasions.
2009-09-28 23:16:05 +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
17f8278c34 MDL-19057 fix default test, rename one reserved word ("number") and add a few more default tests 2009-09-24 21:55:44 +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
8127db52db Added some DDL tests to check for proper empty defaults. 2009-09-22 17:57:08 +00:00
stronk7
692ae9122e MDL-14679, MDL-17491 empty defaults: when passing empty ('') default to char/clob columns
apply correct $default_for_char, so each DB will get its correct empty value
2009-09-22 17:26:40 +00:00
stronk7
bad9a043a4 Test drop_enum_from_field() and friends. Interim tests for the 1.9 => 2.0
upgrade. Will be out after branching for 2.1
2009-09-09 12:55:01 +00:00
stronk7
4d163d02be Do not force table type for temporary tables 2009-09-09 09:44:39 +00:00
stronk7
f94f10ca81 temp tables behaviour change: exception if exits on creation (like normal tables) 2009-09-09 09:41:37 +00:00
stronk7
4ff402d68e MDL-15181 temporary tables support. No more differences in table_exists() +
implemented temptables store for mysql.
2009-08-31 15:47:46 +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
stronk7
18672a3e22 MDL-17969 mssql sql generator. Now works with temptables store and facilities 2009-08-30 23:24:08 +00:00
stronk7
c6ea7fc24e Clean-up some conflicts introduced in my prev commit. 2009-08-30 23:18:24 +00:00