Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2009 at 18:37 UTC
Updated:
7 Sep 2017 at 15:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerHere the patch comes.
Comment #2
merlinofchaos commentedOk, this is going to be kind of annoying.
We're not supposed to actually modify views_schema_1() -- note that the very first update in the 6.x series loads views_schema_1() and creates it. So if we modify it, then someone updating from 5.x is going to end up going through an invalid path.
We already have an issue about that, in fact, but nothing's actually been done with it because it hasn't gotten high enough on my TODO list to actually do. So we're probably going to need to address that either before or while we address this. I'm not sure offhand what that issue nid is, but you can duplicate the issue by upgrading a drupal 5 site directly to a very recent version of Views.
Comment #3
dawehnerComment #4
dawehnerComment #5
merlinofchaos commentedCommitted to 6.x branches.
Comment #6
dawehnerand fixed.
Comment #8
calefilm commentedTrying to fix my empty text dilemma after upgrading (see: http://drupal.org/node/1330148 ) I went back down to 6.14 and now get this warning:
user warning: Unknown column 'view_php' in 'field list' query: UPDATE views_view SET name = 'rmp_promo_reviews_per_employer', description = 'employer promo reviews', tag = 'employer promo reviews', view_php = '', base_table = 'node', is_cacheable = 0 WHERE vid = 354 in /Users/Cale/Sites/acquia-drupal/sites/all/modules/views/includes/view.inc on line 1722.
I can't get rid of it. I'm getting the same type of message when I save other views.
Comment #9
merlinofchaos commentedYou need to clear caches to ensure the schema cache is rebuilt, I think.
Comment #10
calefilm commentedI tried doing that. I think the problem was upgrading to 6.x-3.x-dev from 2.16 and then back down to 2.12. I upgraded my system every time but that must have confused things.
I will restore my system back to yesterday when I had 2.16 -- the only problem is I lose my empty text output when I overwrite my field in views.
Comment #11
calefilm commentedOkay. Restored back to 2.16 and error disappears. Now I just need to figure out how to get the empty text output working again..
Comment #12
kentr commentedI've had success with putting the schema reset into the update function.
Example:
In any event, running this code
drupal_get_schema('views_view', TRUE);eliminates the 'view_php' error for me.Comment #13
emallove commentedWhat's the alternative to
is_cacheablefor disabling caching on an individual view?