You need to implement hook_update_1() in the .install file. See http://api.drupal.org/api/function/hook_update_N.

Comments

liquidcms’s picture

Is 5.1 (this isn't really my project) the version that used nodes instead of forms? If that's the case; i won't be doing an update from 5.1 to 5.3.

I think 5.2 might be the first use of saving forms - i am not sure there are db deltas between 5.2 and 5.3; but possibly? I'll try to take a look this weekend and will create an _update if that's the case.

douggreen’s picture

The point is if someone has that version installed, your new tables never get created, and you get lots of errors. You should add a hook_update_1() in autosave.install to create the tables.

liquidcms’s picture

update_1 added to dev version

let me know if this does the trick.

douggreen’s picture

Status: Active » Closed (fixed)

I'm doing some ticket triage and closing all open 5.x or moving them to the latest appropriate version. Reading the comments, this might of been fixed, but the issue is moot 3.5 years later.