77 Commits

Author SHA1 Message Date
stronk7
f906838a4e Added some more tests to temp tables to show current implementation problems in mysql and mssql. Fix coming soon. 2009-08-29 01:17:57 +00:00
stronk7
0f887b881e Delete the tweakTempTable() thing used to support temp tables in mssql.
Was hacky and incomplete. Proper solution must be mssql exclusive.
2009-08-28 17:30:18 +00:00
stronk7
c402af03a8 To alter columns back and forth between numeric types and text,
we need upto 3 intermediate alters.
Corolary: MSSQL implicit conversions aren't transitive at all! :-)
2009-08-28 01:19:49 +00:00
stronk7
eb8f775d97 Fix one wrong test. To get defaults applied, new column must be not null. 2009-08-28 01:14:32 +00:00
stronk7
e871fb87bb workarround MSSQL (RDBMS) bug with float types. Not important as far as
we don't use floats within Moodle, but XMLDB layer supports them.
2009-08-25 21:06:14 +00:00
stronk7
25e9ef26eb MDL-19974 postgres sql generator - delete unused variable 2009-07-30 22:16:09 +00:00
stronk7
c5ec08d67e MDL-19057, MDL-19974 DDL tests - WIP: from 365 to 473 tests (add/drop field and change_field_type) 2009-07-30 22:12:42 +00:00
stronk7
4411f0d5f5 MDL-19974 postgres sql generator - simplified a lot thanks to 8.x as min req in Moodle 2.0 (alter column & defaults handling) 2009-07-30 22:08:47 +00:00
stronk7
d274f2096b MDL-19695 dependencies - now every change_field_xxx() method looks for dependencies 2009-07-30 18:54:54 +00:00
skodak
e6c6531cce MDL-19689 fixed strictness constants, thanks Tim 2009-07-04 09:30:59 +00:00
skodak
af12ea93ba MDL-19689 new $strictness parameter in $DB->get_record() and $DB->get_field() family of DML methods 2009-07-03 22:38:56 +00:00
stronk7
122e7ef56c MDL-19057 ddl tests - slowly advancing. Added some test to check for MDL-19695 behaviour 2009-07-02 16:13:30 +00:00
stronk7
2baf1380d4 MDL-19695 field dependencies - defined new exception ddl_dependency_exception that
will be thrown when one DDL operation (drop only for now) is attempted over one
field being part of indexes.
2009-07-02 16:08:44 +00:00
stronk7
86ffb13965 MDL-19057 ddl tests - complete a bit ddl table tests (and partially drop enum fields) 2009-06-28 22:12:20 +00:00
stronk7
db3a1eb8fd MDL-19579 code coverage - prepare ddl & moodlelib tests to support code coverage 2009-06-23 09:30:59 +00:00
skodak
17da2e6f28 MDL-16438 centralise information about plugins to avoid duplication, includes local customisation conversion to standard plugin structure + fixes for some recent regressions; see tracker for more details and links to docs and forums discussions 2009-06-19 14:25:56 +00:00
skodak
94b6329544 MDL-14679 license header fixes 2009-06-12 08:44:49 +00:00
stronk7
5b49a67cc1 MDL-18577 drop enums - annotating one more function to be dropped in Moodle 2.1 2009-05-25 14:43:29 +00:00
stronk7
d09af2e19f MDL-18547 mysql floats - only none/both params (length & decimals) syntax is
allowed. So, if decimals are missing, enforce 0 if length is defined. Merged
from 19_STABLE
2009-05-11 15:11:23 +00:00
stronk7
f9ecb1716d MDL-18577 drop enums support - fixed dml/ddl tests to be runnable once enums are out. Some
are failing but will be fixed/completed soon by MDL-19057
2009-05-03 23:46:40 +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
stronk7
2a88f626f7 MDL-18577 drop enums support - step2: enums out from editor, dbmanager and all upgrade scripts. 2009-05-01 01:19:16 +00:00
stronk7
e37cd84ad4 MDL-18577 drop enums support - step1: transforming all enums to nomal varchar + prevent creation of new ones 2009-04-27 20:29:01 +00:00
tjhunt
465d96958f UnitTestCaseUsingDatabase: fix bug with install_one_table_from_xmldb_file
The bug prevented you creating the first table from an install.xml file
2009-04-07 05:19:20 +00:00
tjhunt
67d5e9df39 ddl: New method install_one_table_from_xmldb_file ready for MDL-18607 unit test changes.
Plus small refactoring to avoid duplicating code.
2009-03-23 04:04:37 +00:00
stronk7
6dc72d7506 MDL-18420 reserved words - lowercase sqlite reserved words 2009-03-02 19:20:47 +00:00
stronk7
e9fc2f32ef MDL-18420 reserved words - adding 2 new PG reserved words. Merged from 19_STABLE 2009-03-02 19:09:29 +00:00
stronk7
09717fa5ca MDL-18420 reserved words - adding MySQL 5.1 and 6.0 new reserved words ; merged from 19_STABLE 2009-03-02 18:53:59 +00:00
skodak
117679db37 MDL-17859 implemented caching in get_tables() 2009-01-12 18:10:50 +00:00
skodak
1045a0074c MDL-17849 sql queries not printed by default during upgrade anymore, there is a new config.php only setting $CFG->upgradeshowsql instead 2009-01-12 16:52:53 +00:00
skodak
be415e95be MDL-17354 moved reset_sequence into dbmanager 2008-11-21 21:40:50 +00:00
skodak
22d77567a9 MDL-17317 DML: Exceptions used by all drivers now :-) expect some more commits/cleanup soon 2008-11-21 20:09:13 +00:00
skodak
d21c50373a MDL-17129 dml/ddl: improved handling of dml exception in dml 2008-11-06 18:55:54 +00:00
skodak
591ffe1a6a MDL-17129 dml/ddl: improved ddl exceptions when changing db structure 2008-11-05 10:45:45 +00:00
skodak
6e22a695d8 MDL-17129 dml: fixed dml exception handling in unit tests 2008-11-05 00:05:18 +00:00
skodak
0bd364c1d7 MDL-17020 dml: native pgsql driver - ddl unittest more robust - fixed typo, thanks ELoy! 2008-10-27 15:54:36 +00:00
skodak
a65b0be43f MDL-17020 dml: native pgsql driver - ddl unittest more robust 2008-10-27 15:50:32 +00:00
skodak
6d89eff087 MDL-16930 ddl - exceptions cleanup 2008-10-18 22:46:17 +00:00
nicolasconnault
c7d306e168 MDL-15666 MDL-16486 2008-09-17 14:31:30 +00:00
nicolasconnault
b9c639d6c2 MDL-16483 Refactored install/upgrade code into lib/adminlib. Created an intermediate MoodleUnitTestCase class that overrides simpletest's constructor, destructor and setup/teardown methods. All moodle unit tests must extend this class. 2008-09-16 12:19:43 +00:00
skodak
3eefe57bd1 removing forgotten grrr debug code ;-) 2008-09-01 20:04:18 +00:00
skodak
ebf20af07d MDL-15635 dml library inclusion refactoring 2008-08-30 18:48:39 +00:00
skodak
a47c84c4bb MDL-15635 sqlite fixes - by Andrei Bautu 2008-08-30 18:46:18 +00:00
skodak
f4caf0df5e MDL-15669 Check db schema vs install.xml - code by Andrei Bautu, with minor changes only (more strict checking) 2008-08-25 22:02:49 +00:00
skodak
0549c245e1 MDL-15071 new method for installing of table from xmld structure - credit goes to Andrei Bautu 2008-07-13 20:27:14 +00:00
skodak
28a40b5ca2 MDL-15071 coding style improvement by Index: sql_generator.php by Andrei Bautu 2008-07-13 10:14:42 +00:00
skodak
943de432e1 MDL-15071 fixes of the SQLite layer by Andrei Bautu 2008-07-13 10:12:20 +00:00
skodak
55946ffda6 MDL-15071 new sqlite pdo driver by Andrei Bautu (with minor changes) 2008-06-22 21:35:07 +00:00
skodak
eee5d9bb85 MDL-14956 DDL exceptions 2008-06-22 16:51:55 +00:00
skodak
eb099f327b MDL-14956 removed some tests from create table method - no need to check if something exists in table if table itself does not exist yet 2008-06-22 12:35:15 +00:00