There is an error in my upload. I tried uploading both folders via ftp.
As soon as I tried uploading the "product-yet_another_award_system" from the "YaAS-4.0.2-PL1" folder, it gave me a database error.
In my AdminCP, Plugin Manager, Edit Product screen, these are what appear under the "Install Code":
Version 1.0.0:
$db->reporterror = 0;
// NEW INSTALL CODE
if ($installed_version == null) {
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "award_user ADD award_cgroup VARCHAR( 15 )");
echo "<font size=\"1\">Alter table - award_user - criteria group</font><br />";
}
Version 1.0.2:
// CREATE AWARD AUTOMATION TABLE
$db->reporterror = 0;
$db->query_write("CREATE TABLE " . TABLE_PREFIX . "award_automation (
award_automation_id int(10) unsigned NOT NULL auto_increment,
auto_active int(1) NOT NULL,
auto_name varchar(32) NOT NULL,
auto_issuereason varchar(255) NOT NULL,
auto_type varchar(32) NOT NULL,
auto_criteria int(10) NOT NULL,
auto_awardid int(10) NOT NULL,
PRIMARY KEY (award_automation_id)
)
");
echo "<font size=\"1\">Added Table - Award Automation</font><br />";
|