Reviewed & tested by the community
Project:
Audio
Version:
4.6.x-1.x-dev
Component:
Miscellaneous
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2006 at 18:21 UTC
Updated:
17 Jan 2007 at 20:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
drewish commentedi created a 4.7 branch yesterday so this is now a bit higher priority.
Comment #2
iamnoskcaj commentedDOH! I didn't even think about the fact that this module would need a special upgrade script. Installing the 4.7 version in my newly upgraded 4.7 drupal instsall produced errors. Of course, the normal install script tried to create tables that already existed. It also tried to access fields/columns that weren't present in the old version (namely "tag")
Here's the error after enabling it:
user warning: Table 'audio_metadata' already exists query: CREATE TABLE audio_metadata ( `vid` int(10) unsigned NOT NULL default '0', `tag` varchar(45) NOT NULL default '', `value` varchar(255) NOT NULL default '', `clean` varchar(255) NOT NULL default '', PRIMARY KEY (`vid`,`tag`,`value`), KEY `audio_metadata_tags` (`clean`) ) /*!40100 DEFAULT CHARACTER SET utf8 */; in /home/httpd/vhosts/bloomston.com/httpdocs/includes/database.mysql.inc on line 120.
user warning: Unknown column 'tag' in 'field list' query: SELECT tag, value FROM audio_metadata WHERE vid=365 in /home/httpd/vhosts/bloomston.com/httpdocs/includes/database.mysql.inc on line 120.
I'm sure all the developers are aware of the issues, but I figured I'd post something more descriptive than a request for a script.
Maybe I'll pick through the .install and see if I can figure out what needs to be updated in the tables. Otherwise I'll be eagerly awaiting any progress on this.
Thanks!
Comment #3
drewish commentedHere's an outline of what the script needs to do:
fileformat, sample_rate, channel_mode, bitrate, bitrate_mode, playtime
Comment #4
mediafrenzy commentedHi all, just wondered if anyone has created an update script yet? I'm needing to upgrade to 4.7, and I'm not sure how to make my 500 audio nodes work on the otherwise successfully upgraded 4.7 test site.
I'd really appreciate some advice on how to upgrade 4.6 audio to 4.7, and haven't yet had any luck in the forums.
Thanks
Comment #5
drewish commentedas far as i know no one's created a script yet and doing it by hand would be pretty tedious. if someone wants to step up and take it on i'd be willing to answer any questions.
Comment #6
zirafa commentedHere is a first draft of an update script. Just whipping this up, probably needs some work.
Comment #7
zirafa commentedattaching it as a file, found some typos.
Comment #8
zirafa commentedmore typos!
Comment #9
drewish commentedzirafa, thanks for stepping up on this. i don't have any 4.6 sites but if i get some time i'll setup a dummy site and try importing some data. once this is finalized i'd like to include it in the 4.7 branch.
Comment #10
mediafrenzy commentedHey thanks guys - great stuff.
Just to clarify... this will be run after already updating the core of your site to 4.7 right?
I'll watch this thread with keen anticipation ;)
Comment #11
zirafa commentedRight, after you've upgraded core to 4.7. This script is UNTESTED so only try it out on a dummy or test site!
Comment #12
mediafrenzy commentedI'm keen to give this script a try, but not until I figure out how to change the Private file path in Drupal..... at the moment my testsite is still running off my production sites Private files directory.
No explanation on how to change the Private files path in the forums as yet - if anyone here can help, I'll be able to try out this script (just wanting to totally seperate the test site / production site before I run it)...
"How do I change the Private files path?" forum post
http://drupal.org/node/71750
Comment #13
benbruscella commentedI'm going through this process now and unfortunately the script doesnt work as is.
At least, I am dumping it in the same place as update.php and it fails there.
I've debugged it a little and it looks like the bootstrap isnt quite right.
Any suggestions?
Comment #14
benbruscella commentedSome more details:
This http://drupal.org/files/issues/audio-upgrade-46-47.php_0.txt
fails like this:
Fatal error: Call to undefined function: db_query() in /home/MiniWeb/brownnoiseunit/public_html.472/audio-upgrade-46-47.php on line 56
db_type looks like its not set correctly either...
Comment #15
drewish commentedbenbruscella, I've updated zirafa's script and run it through a little sample data. it's designed to be run after you've upgraded to drupal 4.7.
please test it after backing up your files and database.
Comment #16
zirafa commentedi just tried out drewish's updated script and it seems to have worked.
Comment #17
mediafrenzy commentedI too tried out Drewishs latest script, which also appeared to work for me.
Comment #18
toemaz commentedI had a 4.6 table with around 20 audio nodes and the conversion worked perfect!
Well done!
Comment #19
drewish commentedokay, well i won't close this so that people looking to upgrade can find the script.
Comment #20
benbruscella commentedSorry, I didnt get a chance to test this. Luckily, I only had a few audio nodes so it wasnt a pain to manually sort it out.
Thanks for the update!
Comment #21
drewish commentedComment #22
drewish commentedi've updated it to add postgresql support... though since 4.6 didn't have postgres support it probably doesn't matter.
Comment #23
yched commentednote that this script requires you have the getid3 library installed.