#8 #5 #4 #3 coauthors cleaning
--- a/install/install.php
+++ b/install/install.php
@@ -784,7 +784,7 @@
`date` int(11) NOT NULL default '0',
`updated` int(11) NOT NULL default '0',
`uid` int(11) NOT NULL default '0',
- `coauthors` varchar(50) NOT NULL default '0',
+ `coauthors` tinyint(1) NOT NULL default '0',
`featured` char(1) NOT NULL default '0',
`validated` char(1) NOT NULL default '0',
`completed` char(1) NOT NULL default '0',
--- a/update.php
+++ b/update.php
@@ -168,6 +168,9 @@
dbquery("UPDATE `" . TABLEPREFIX . "fanfiction_news` set time = time_tmp");
dbquery("ALTER TABLE `" . TABLEPREFIX . "fanfiction_news` DROP `time_tmp`");
}
+
+ /* todo */
+ /* ALTER TABLE `e107_fanfiction_stories` CHANGE `coauthors` `coauthors` TINYINT NOT NULL DEFAULT '0'; */
}
$update = dbquery("UPDATE " . $settingsprefix . "fanfiction_settings SET version = '" . $version . "' WHERE sitekey = '" . SITEKEY . "'");
if ($update) $output .= write_message(_ACTIONSUCCESSFUL);