Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
22 Feb 2010 at 21:24 UTC
Updated:
16 Jan 2011 at 00:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
merlinofchaos commentedThis needs to be updated for the .install file changes recently committed.
Comment #2
dawehnerUpdated version.
I'm wondering whether
should be 7 in drupal7 version?
Comment #3
merlinofchaos commentedHmm.
Let's not set a default in the db, and let's explicitly set it. Because changing the schema is going to require branching our update numbers in an ugly way.
Comment #4
dawehnerOK Default 0
The core version will be added on adding a view.
Comment #5
dawehnerOK Default 0
The core version will be added on adding a view.
Comment #6
dawehnerEven if this patch gets commited, there might be people which doesn't have created/exported a view after this patch. So $view->core might be empty. Should i respect this and consider that its a 6 views?
This is somehow a push :) I really need this for the conversion api-ui.
Comment #7
dawehnerSome feedback would be cool. This is afaik badly needed for automatic update of drupal6 to drupal7 views.
Comment #8
bojanz commentedSounds good to me.
If you're doing an update from d6 to d7 and the version is missing, assuming that the view is 6.x is an okay assumption.
Comment #9
dawehnerHere is a rerole
Comment #10
dawehnerAnd here is the patch.
Comment #11
dawehnerAssign to bojanz for review
Comment #12
bojanz commentedCode looks good. Applies to 2.x and 3.x
Applied patch to 3.x, ran update.php, update completed successfully, existing views had 0 as the core version.
Added new View, core version listed as 6 in the database table, as expected.
This will need porting for 7.x
Comment #13
merlinofchaos commentedCommitted to 2.x and 3.x
NOte that this causes 2.x to skip update 6012 -- which is probably okay. We need to figure out how to make the updates clean across versions.
Comment #14
dawehnerPorted an commited to the 7.x branch.
I suggest to add 6015 for the next update function in each branch.