If you mean you're using the Photo Album package included in OpenACS 4.6, just get the newest version. It has all the upgrade scripts needed.