]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-primera.php
Menu entries moved to ext-user:
[mailer.git] / inc / extensions / ext-primera.php
index 960fc96800b9362cf263cdbe6c5027f422f9c93a..9d7373da88558fcacc7211f59d90c4a830ed2104 100644 (file)
@@ -43,19 +43,19 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Version of this extension
-setThisExtensionVersion('0.0');
+setThisExtensionVersion('0.0.0');
 
-// Version history array (add more with , '0.1.0' and so on)
-setExtensionVersionHistory(array('0.0'));
+// Version history array (add more with , '0.0.1' and so on)
+setExtensionVersionHistory(array('0.0.0'));
 
 // This extension is in development (non-productive)
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addDropTableSql('user_primera');
-               addCreateTableSql('user_primera', "(
+               addCreateTableSql('user_primera', "
 `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
 `userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `primera_account` VARCHAR(255) NOT NULL DEFAULT '',
@@ -64,9 +64,9 @@ switch (getExtensionMode()) {
 `primera_type` ENUM('IN','OUT','FAILED') NOT NULL DEFAULT 'FAILED',
 `primera_api_message` TINYTEXT,
 `primera_api_status` VARCHAR(255) NULL DEFAULT NULL,
-KEY (`userid`),
-PRIMARY KEY (`id`)
-) ENGINE = {?_TABLE_TYPE?} CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT = 'Transfers in Primera'");
+PRIMARY KEY (`id`),
+INDEX (`userid`)",
+                       'Transfers in Primera');
 
                // Configuration
                addConfigAddSql('primera_min_payout', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 40000');
@@ -84,7 +84,7 @@ PRIMARY KEY (`id`)
                addAdminMenuSql('primera', 'list_primera', 'Primera-Anfragen auflisten', 'Listet alle Primera-Auszahlungsanfragen Ihrer Mitglieder auf.', 2);
 
                // Member menu
-               addMemberMenuSql('main', 'primera', 'Primera-Ein-/Auszahlungen', 'N', 'Y', 11);
+               addMemberMenuSql('main', 'primera', 'Primera-Ein-/Auszahlungen', 11);
                break;
 
        case 'remove': // Do stuff when removing extension