new installations of 1.0.2 and later)
mailed tinyint(1) unsigned NOT NULL default '0',
subject varchar(255) NOT NULL default '',
message text NOT NULL,
+ attachment VARCHAR(100) NOT NULL default '',
totalscore tinyint(4) NOT NULL default '0',
PRIMARY KEY (id)
) COMMENT='All posts are stored in this table';
// This fragment is called by /admin/index.php
////////////////////////////////////////////////////////////////////////////////
-$module->version = 2002082900;
+$module->version = 2002091000;
$module->cron = 60;
function forum_upgrade($oldversion) {
execute_sql(" ALTER TABLE `forum_posts` ADD `attachment` VARCHAR(100) NOT NULL AFTER `message` ");
}
+ if ($oldversion < 2002091000) {
+ if (! execute_sql(" ALTER TABLE `forum_posts` ADD `attachment` VARCHAR(100) NOT NULL AFTER `message` ")) {
+ echo "<P>Don't worry about this error - your server already had this upgrade applied";
+ }
+ }
+
return true;
}