#1488300 closed Bugs (fixed)
Failure to update MySQL database from 0.7 - text column can't have default value
| Reported by: | Jack! | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.7.2 |
| Component: | Database | Version: | 0.7 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
MySQL (version 5.5.19) on Windows is throwing an error if I'm trying to upgrade from RC 0.7 to RC 0.7.1 using appropriate part in file mysql.update.sql.
Command that throws an error:
ALTER TABLE `contacts` MODIFY `email` text NOT NULL DEFAULT '';
Error shown:
ERROR 1101 (42000): BLOB/TEXT column 'email' can't have a default value
MySQL 5.5 manual (see http://dev.mysql.com/doc/refman/5.5/en/blob.html) says "BLOB and TEXT columns cannot have DEFAULT values."
Next command works though:
ALTER TABLE `contacts` MODIFY `email` text NOT NULL;
but I'm not sure if this meets the RC requirements for the database.
Change History (3)
comment:1 Changed 17 months ago by Jack!
- Component changed from Addressbook to Database
comment:2 Changed 17 months ago by alec
- Milestone changed from later to 0.8-beta
- Resolution set to fixed
- Status changed from new to closed
comment:3 Changed 16 months ago by thomasb
- Milestone changed from 0.8-beta to 0.7.2
Note: See
TracTickets for help on using
tickets.

Fixed in [3d4a482f].