User warning error when installing alpha10
ron_s - June 12, 2008 - 17:53
| Project: | Advanced Forum |
| Version: | 5.x-1.0-alpha10 |
| Component: | Code |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Minor thing, but alpha10 assumes advforum_last_post table is already created and tries to drop it. If someone is upgrading from a version before alpha9 or installing for the first time, they will receive this warning message.
Obviously not a big deal, but something that should eventually be made into a conditional.

#1
I think it should be easily fixable by using:
instead of
"drop table tbl_name ..."
use
"DROP TABLE IF EXISTS tbl_name [, tbl_name] ..."
see http://dev.mysql.com/doc/refman/5.1/en/drop-table.html for further explanation.
PS: Update-Functions are not run on fresh installs, am I wrong?
#2
Yeah, this is only an issue if you're going from pre-alpha 9 to alpha 10. I fixed it anyway.
Michelle
#3
Automatically closed -- issue fixed for two weeks with no activity.