Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: 1.9
-
Fix Version/s: 1.9
-
Component/s: Database SQL/XMLDB
-
Labels:None
-
Environment:PostgreSQL and MySQL
-
Database:MySQL, PostgreSQL
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_19_STABLE
Description
Starting from Moodle 1.7 we are installing all the TEXT fields without defaults. That's OK.
But some old installations will contain some defaults under such type of columns. The idea is to iterate over all the fields of this type in Moodle, dropping the default clause if present.
Needed for MySQL and PostgreSQL (there weren't other flavours before 1.7)
Ciao ![]()
Issue Links
| This issue duplicates: | ||||
| MDL-6218 | MySQL - TEXT and BLOB columns can't have a default value |
|
|
|
Eloy - is there a good programmatical way to find all such fields with XMLDB or does it involve looking through a database/schema ?