while updating from 1.0 to dev:
The following updates returned messages
pdm module
Update #7002
Failed: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NOT NULL DEFAULT ''' at line 1: ALTER TABLE {pdm} ADD `attributes` NOT NULL DEFAULT ''; Array ( ) in db_add_field() (Zeile 2841 von /path/to/workspace/includes/database/database.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | pdm_upgrade_errors.patch | 673 bytes | erikhopp |
Comments
Comment #1
Andre-BComment #2
Andre-Bthis is messed up too - there is no pdm_archive table in 7002 because it is added in 7010
Comment #3
Andre-Bpdm_update_7002 needs to be
if I understood correctly there is no size for varchar but length, so pdm_update_7011 needs to become
as well
Comment #4
erikhopp commentedIt looks like I've run into this and can confirm that the issues and fixes Andre-B cites here are correct. I've create a patch with the changes suggested which seems to get you through the upgrade process ok. Though I think I've run into additional errors afterwards. That will be a new ticket.
Comment #5
glynster commentedRTBC this resolves the problem!
Comment #6
soyarma commentedApplied to dev
Comment #8
soyarma commented