
Originally Posted by
eggsurplus
I haven't tried this yet so backup your files first and database. Open the custom module's vardefs file and on the last line change "basic" to "file". Now go to Admin->Repair/Rebuild and run it against that custom module so that it adds/removes the necessary columns to make it a file type table.
You'll also have to change YOURMODULE_sugar.php so that it extends File instead of Basic. Change the fields in that file to match the new type as well. There may be more...
Usually, once you've built a module it's pretty fast the second time through to just rebuild it from scratch so if it comes down to it there's always that option. Personally, I'd go that route and have in the past.
Good luck!
Bookmarks