Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
system.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Aug 2010 at 10:25 UTC
Updated:
3 Jan 2014 at 02:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sutharsan commentedComment #2
catchComment #3
sutharsan commentedIn system_update_7059() the {file_update} table is used while it is only created in system_update_7060().
This patch moves create table the code form system_update_7060() to system_update_7059().
Comment #4
sutharsan commentedAttached database to reproduce this issue and #895088: Upgrade fails
Comment #5
clemens.tolboomAs system_update_7060 is now empty we need to adjust user_update_dependencies to point to system_update_7059
Comment #6
catchLooks great.
Comment #7
webchickGreat! Committed to HEAD. Thanks!
Comment #8
pbuyle commentedIf the upload table does not exists on the upgraded site, the file_usage will not be created because of the check at the beginning of system_update_7059. Also, system_update_7059 can be run multiple times since it process batches of 500 files at a time. At the second run, an DatabaseSchemaObjectExistsException is thrown.
Here as patch to separate table creation and upload migration and avoid these issues.
Comment #9
pbuyle commentedComment #10
marvil07 commentedThis is needed for solving #895176: Upgrade fails because of integrity constraint violation in system_update_7060, and after testing it against the other issue(see the database at #895176-3: Upgrade fails because of integrity constraint violation in system_update_7060) we can get the real error mentioned in the mentioned issue.
Comment #11
webchickMarco discussed this with me in person, and said it's RTBC. So, committed to HEAD. :)
Comment #12
groovehunter commentedGot almost same error with current snapshot, after a while, playing with it and installing some mods, views, rdfx,...
update.php doesnt fix it.
Comment #13
groovehunter commentedjust to note an error resulting from that
using rdfx / rdfui module and entering a RDF predicate for the voc on
http://drupal7/admin/structure/types/manage/page/fields/field_myvoc1
Comment #14
groovehunter commentedjust to get the table created i helped me by executing per web
before i outcommented the check for existing update table
throws errors but at least the table is created and as my installation is fresh there are no uploads resp. files yet
Comment #15
David_Rothstein commentedCross-linking this to its HEAD to HEAD issue, for those who care: #905776: #895032 - Update for creating the {file_usage} table