After applying patch #3 in #895032: Upgrade fails on missing file_usage table the upgrade fails on the error below. Creating a new issue as the errors seems not be related.
Update #7059
* Failed: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'id' cannot be null: INSERT INTO {file_usage} (count, fid, module, type, id) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => 1 [:db_insert_placeholder_1] => 4 [:db_insert_placeholder_2] => file [:db_insert_placeholder_3] => node [:db_insert_placeholder_4] => ) in file_usage_add() (line 608 of /Users/erik/www/core/includes/file.inc).
Comments
Comment #1
pbuyle commentedI've the same issue (and I had #895032: Upgrade fails on missing file_usage table too).
Comment #2
sutharsan commentedAttached patch fixes this bug. Use the database in #895032: Upgrade fails on missing file_usage table to reproduce the bug.
Comment #3
catchMake sense.
Comment #4
webchickAwesome!! Committed to HEAD.