Module throws an Exception upon install:
exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1072 Key column '100' doesn't exist in table' in \includes\database\database.inc:2227
leaving module enabled, but no database-table nor configuration settings form created.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | Exception_1072_Key_column_100_doesnt_exist_in_table-2865088-3.patch | 581 bytes | spokje |
Comments
Comment #2
spokjeComment #3
spokjeThis patch should fix it.
Comment #4
spokjeComment #5
spokjeComment #6
spokjeComment #7
caesius commentedThanks, patch works.
Comment #8
minoroffense commentedI can also confirm the patch works as expected
Comment #9
spokjeNo changes, but trying to see if this triggers the test-bots.
Comment #10
spokjeDidn't trigger testbot, reverting to original RTBC-status.
To be clear: No code was changed (or indeed harmed) in the original patch.
Just changed the status of the issue.
Comment #11
nancydruI discovered this with a different issue and fixed it there. Thanks for the patch.
Comment #13
feelcreative commentedPatch works! Whats the process of getting this integrated into the module code?
C
Comment #14
nancydruIt's already in the Dev version
Comment #15
3liThe patch works, it would be great if it could be moved into the next stable version at some point. As without this fix the module did not install at all for me,
Comment #16
Rus5555 commentedPlease help fix Drupal 7 Failed: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1072 Key column 'cid' doesn't exist in table: ALTER TABLE {metatag_config} ADD UNIQUE KEY `temp_key` (`cid`, `instance`); Array() in db_add_unique_key() function