Moving from attachment to core upload

Julien PHAM - January 22, 2007 - 09:14
Project:upload (simple)
Version:HEAD
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,
As attachment will not be continued in 5.0 version of drupal, I do plan on moving to core upload system, even if this module lacks some features, such as a way to prevent the bug if two people try to submit two files with the same name.

So now I need advice on how to migrate my existing nodes from old attachment system to core upload one. Should I take all my nodes one at a time and upload the same file, then delete the file from attachment system? Or is there an easier way to do this?

Thanks

#1

Chill35 - March 7, 2007 - 07:01

Don't ask me how I got here...

I think that you should look at the core upload {files} table. Then...
compare with the attachment table, then write a SQL command... and ideally post it here for other people...
If you have trouble writing the SQL command (to move files info from one table to another) then you can ask for help.

 
 

Drupal is a registered trademark of Dries Buytaert.