163 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
7823af0994 MDL-32323 tests: check both deletion with truncate and with delete 2012-04-12 00:13:38 +02:00
Petr Skoda
8eaa21e195 MDL-32323 fix issues breaking phpunit tests for sqlsrv driver 2012-04-11 22:14:18 +02:00
Petr Skoda
4787e466d6 MDL-32323 make sure DDL libs are loaded before starting function db tests 2012-04-10 15:27:06 +02:00
Petr Skoda
a0c5affee6 MDL-32323 test detection of changes and improve coding style 2012-04-10 15:27:05 +02:00
Petr Skoda
1cbf2a20ca MDL-32149 setUp() and tearDown() are supposed to be 'protected', add missing blog testcase 2012-04-03 22:30:56 +02:00
Petr Skoda
a3d5830a0a MDL-32149 PHPUnit test support - part 2
Includes:
* constants refactoring
* reworked db table init
* support for $CFG->debug = -1
* functional DB tests
* fixed $DB->get_indexes() to not throw exceptions when table does not exist
* fix handling of user passwords in test db
* add debug info to exception messages
* removed unnecessary PHP debug errors from mathslib
* fixed @error suppression in get_string
* fixed PHPUnit error handler setup
* added timezone info to default install
2012-04-03 22:30:53 +02:00
Eloy Lafuente (stronk7)
9ee910e69c MDL-32112 mysql: change rename sql generator to pass validation 2012-03-26 19:57:58 +02:00
Petr Skoda
d3232735ee MDL-32112 validate float definition in sql_generator 2012-03-24 11:40:15 +01:00
Petr Skoda
54e71a43ba MDL-32112 validate number definition in sql_generator 2012-03-24 11:40:15 +01:00
Petr Skoda
720d605e61 MDL-32112 validate integer definition in sql_generator 2012-03-24 11:40:15 +01:00
Petr Skoda
f9090b195b MDL-32112 validate table name restrictions in sql_generator 2012-03-24 11:40:15 +01:00
Petr Skoda
6cfade8f5a MDL-32112 validate field name restrictions in sql_generator 2012-03-24 11:40:14 +01:00
Petr Skoda
5bd4040866 MDL-31857basic phpunit support
Thanks Eloy Lafuente, Tim Hunt and Sam Hemelryk for valuable feedback and ideas.
2012-03-21 10:31:37 +01:00
Eloy Lafuente (stronk7)
b20bb8454a Merge branch 'w11_MDL-31985_m23_lobsizes' of git://github.com/skodak/moodle 2012-03-13 00:15:59 +01:00
Petr Skoda
f13489df50 MDL-31985 remove LOB sizes from code and UI 2012-03-11 13:42:37 +01:00
Petr Skoda
f886a2cf79 MDL-31899 add extra text size unit tests 2012-03-10 21:38:57 +01: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
Petr Skoda
10c5c29c02 MDL-27982 keep testing UNSIGNED in ddl tests for now 2012-03-06 12:00:29 +01:00
Eloy Lafuente (stronk7)
3360b13bac MDL-31251 documentation : fix incorrect docs 2012-02-16 17:59:02 +01:00
Eloy Lafuente (stronk7)
29b6a3e8c3 MDL-31251 documentation : whitespace fixes 2012-02-14 00:36:12 +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
69ac5d478f MDL-30147 do not rely on dml exception type outside of dml layer
The trouble is that dml driver methods (insert, update, select) are not guaranteed to return the same exception class for various db problems and coding style issues. The recommended practice is to catch dml_exception only.
2011-11-19 09:25:11 +01:00
Petr Skoda
aa6dba5538 MDL-29321 tweak large varchar unit tests for oracle 2011-09-16 08:53:11 +02: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
Petr Skoda
257ad88f89 MDL-29313 enforce varchar size limit 2011-09-16 08:49:42 +02:00
Petr Skoda
b2cfdcf697 MDL-29314 enforce index size limits 2011-09-16 08:45:06 +02:00
Petr Skoda
148c65bfc8 MDL-29295 do not use strtok in dml and ddl layers
This prevents clobbering of internal pointer when code calling DML
uses strtok too. Unit test added to prevent future uses.
2011-09-14 00:19:55 +02:00
Eloy Lafuente (stronk7)
00570de599 MDL-26883 ddl - fix some function declarations 2011-03-18 14:40:20 +01:00
Petr Skoda
431ac39634 MDL-26623 fix file permissions
The permissions are now going to be verified as part of the weekly release process.
2011-03-01 12:26:49 +01:00
Petr Skoda
438e22cc50 MDL-26351 fix property and docs typo
Credit goes to David Mudrak.
2011-02-15 09:46:35 +01:00
Petr Skoda
a2d242bc09 MDL-26351 add support for postgresql running with standard_conforming_strings 2011-02-12 16:16:52 +01:00
Eloy Lafuente (stronk7)
f30a13ab2b MDL-26333 ddl - better/safer temp column names 2011-02-09 17:36:57 +01:00
Petr Skoda
e5dadefafc MDL-24322 grrr, fixing my previous commit, sorry Eloy 2010-09-21 10:40:48 +00:00
Petr Skoda
7c0808b6b8 MDL-24322 temporary working for broken prev/next handling in xmldb 2010-09-21 10:18:30 +00:00
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