X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-earning.php;h=43f9924f368791c745da7c733923cb3978e5c3ac;hb=985561270461045c64719266ca6b3a795f6cd76a;hp=4934f2a78ce3d958a5914ad9a842c666c47a73ae;hpb=96659b6ee60946aad5181189d59f71f19b83814a;p=mailer.git diff --git a/inc/extensions/ext-earning.php b/inc/extensions/ext-earning.php index 4934f2a78c..43f9924f36 100644 --- a/inc/extensions/ext-earning.php +++ b/inc/extensions/ext-earning.php @@ -17,7 +17,7 @@ * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -62,10 +62,10 @@ switch (getExtensionMode()) { addCreateTableSql('earning_data', " `earning_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, `earning_group` VARCHAR(255) NOT NULL DEFAULT 'INVALID', -`earning_name` VARCHAR(255) NOT NULL DEFAULT 'INVALID', +`earning_provider` VARCHAR(255) NOT NULL DEFAULT 'INVALID', `earning_sorting` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, PRIMARY KEY (`earning_id`), -UNIQUE `earning_group_name` (`earning_group`,`earning_name`)", +UNIQUE INDEX `earning_group_name` (`earning_group`,`earning_provider`)", 'Registered (extra) earnings'); // User->earnings connection table @@ -76,12 +76,12 @@ UNIQUE `earning_group_name` (`earning_group`,`earning_name`)", `earning_userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, `earning_active` ENUM('Y','N') NOT NULL DEFAULT 'Y', `earning_added` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, -`earning_cancelled` TIMESTAMP NULL DEFAULT NULL, +`earning_canceled` TIMESTAMP NULL DEFAULT NULL, `earning_daily_amount` SMALLINT(7) NOT NULL DEFAULT 0, `earning_current_amount` SMALLINT(7) NOT NULL DEFAULT 0, `earning_points` FLOAT(20,5) NOT NULL DEFAULT 0.00000, PRIMARY KEY (`id`), -UNIQUE `user_earning` (`earning_id`,`earning_userid`), +UNIQUE INDEX `user_earning` (`earning_id`,`earning_userid`), INDEX (`earning_userid`)", 'User->Earning connections'); @@ -104,12 +104,12 @@ INDEX (`earning_userid`)", case 'activate': // Do stuff when admin activates this extension // SQL commands to run - addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='Y', `locked`='N' WHERE `what`='earning' LIMIT 1"); + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='Y',`locked`='N' WHERE `what`='earning' LIMIT 1"); break; case 'deactivate': // Do stuff when admin deactivates this extension // SQL commands to run - addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='N', `locked`='Y' WHERE `what`='earning' LIMIT 1"); + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='N',`locked`='Y' WHERE `what`='earning' LIMIT 1"); break; case 'update': // Update an extension