during update.php from dev 2011-Črv-28 to 1.10 got this:
user warning: BLOB/TEXT column 'duration' can't have a default value query: ALTER TABLE role_expire_length CHANGE `duration` `duration` TINYTEXT DEFAULT '' in H:\Zend\Apache2\htdocs\vvv.cz\includes\database.mysql-common.inc on line 528.
user warning: Data truncated for column 'duration' at row 1 query: UPDATE role_expire_length SET duration=CONCAT(duration,' days') WHERE LENGTH(duration)>0 in H:\Zend\Apache2\htdocs\vvv.cz\sites\all\modules\role_expire\role_expire.install on line 226.
he following queries were executed
role_expire module
Update #6124
Failed: ALTER TABLE {role_expire_length} CHANGE `duration` `duration` TINYTEXT DEFAULT ''
Failed: UPDATE role_expire_length SET duration=CONCAT(duration,' days') WHERE LENGTH(duration)>0
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | role_expire-1302440-02.patch | 12.94 KB | sharplesa |
Comments
Comment #0.0
eL commentedrepair
Comment #1
sharplesa commentedGood catch. This query works fine on Linux, but I see in the mysql documentation that on more strict platforms, you cannot have a default value for TEXT fields. (See http://dev.mysql.com/doc/refman/5.0/en/blob.html, user comment by Bryce Nesbitt)
Thanks for the bug report.
Comment #2
sharplesa commentedI'm about ready to roll out 1.11 if stewsnooze agrees. It will apply the following patch to 1.10.
When applied, this patch will fold in patches and address the following issues:
I also spent a lot of time clarifying language.
Comment #3
sharplesa commentedAddressed by role_expire 6.x-1.11, posted today (2011-10-30).
Comment #4.0
(not verified) commentednot from 1.9 but from dev to 1.10