Closed (fixed)
Project:
Family Tree
Version:
5.x-3.0-beta3
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
9 Jul 2008 at 07:37 UTC
Updated:
12 Sep 2011 at 18:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
Microbe commentedI like your idea as it is something that work make attaching individuals to locations in bulk easier. I have therefore added it in but i dont have access to to CVS so cant upload straigt into the module so do the following:
run the following line in your mySQL database or similar using phpMyAdmin or similar. Adding a table prefix if you have one.
ALTER TABLE `family_location` ADD `related_group` INT( 5 ) UNSIGNED NULL DEFAULT NULL AFTER `country` ;then upload over the current location.inc the attached file
This should make the changes but will only allow you to associate one group to each location, hopefully in the future I can change this to multiple groups.
Comment #2
DL commented1 question: has this feature been committed to cvs?
Comment #3
Microbe commentednot as far as i know, i haven't.
Comment #4
pyutaros commentedChanges have been committed to CVS.
Notes:
Do not manually run the SQL query. Update.php will take care of this after the module has been updated.
I'm assuming these changes were made against the latest CVS files.
Consider making a patch in the future rather than uploading individual files. http://drupal.org/patch
Sorry for the extreme lack of activity lately. I'm having some employment issues that are severely sapping all of my time and resources. I'll message you later with my immediate plans for the module.
PS - Is import currently working?
Thanks,
Jonathan
Comment #5
DL commentedwill test the update, thanks
Comment #6
DL commentedI downloaded the 5.x.3.1 and updated the module. I tried to edit the location index to add an ancestry and this is what I got:
user warning: Unknown column 'related_group' in 'field list' query: UPDATE family_location SET vid='7', title_format='Some title', building='Some building', street='Some street', city='Some City', county='Some County', state_province='some state', country='some country', related_group='5' WHERE nid='7' in /home/username/public_html/mysite/includes/database.mysql.inc on line 172.
Comment #7
Microbe commentedhave you run update.php?
Comment #8
DL commentedyup, it added 1 table in DB, should I run it again?
Comment #9
Microbe commentedStill dont understand how to make patches so I will give you the new file. replace family.install with the following and then run update.php again this should work
Comment #10
pyutaros commentedI think you have the order of these updates wrong. Update numbers have to remain static to provide a sequence between versions.
Unless you can show me what I'm missing, I'm going to reverse order of these two.
Comment #11
Microbe commentedNooooo DONT reorder them.
Some people will have update 1 already applied so by them changing it to update 2 when then apply update 2 it will repeat the update already made and not do what should be update 2. It doesn't matter that the changes were made in a different order as it will apply all updates up to the one that needs doing.
not sure if that all makes sense but basically dont reorder them
Comment #12
pyutaros commentedIt doesn't makes sense. I'm looking at api.drupal.org, and that's exactly the opposite of what it says you should.
http://api.drupal.org/api/function/hook_update_N/5
Help me understand why this is different.
Comment #13
Microbe commentedIt says:
So when you add a second update, as we are doing, the first one stays as 1 and the new one is 2. Which is what I have done. Even though i think i posted the update before you added yours then you shouldn't change the order in which you add them to CVS.
Comment #14
pyutaros commentedI think that's what I'm saying. The updates are a different order in CVS. Inputting them the way that you have them listed will change that order. That's why I want to change the order of what's in the file you updated. Am I still wrong?
Comment #15
Microbe commentedYou added the family_variables update to CVS in 3.1 and called it update_1 (It will always be update 1 now) then I came along and added update_2 (which should always now be update 2) afterwards with the related_group update. This should be how they are labelled and i think they are labelled like this but if not I'm sorry they are supposed to be changed.
Comment #16
pyutaros commentedMicrobe,
Let me just apologize. I must be half dead, asleep, or something. They are in the right order. They have always been in the right order. I'll go ahead and apply it as is.
Sorry again,
Jonathan
Comment #17
pyutaros commentedOkay changes have been applied to CVS. New version 5.x-3.2 available. Going to go check my head. Microbe, I'm going to take the conversation offline now to discuss going forward.
Comment #18
DL commentedthanks, will test this ASAP.
Comment #19
DL commentedjust tested it and there was no error like i reported in #6. great work
Comment #20
pyutaros commentedSetting to fixed.
Comment #21
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.