X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fextensions%2Fext-wernis.php;h=bfb0ac521be04f81798ce3ca79f76cdba5ca1e42;hp=6cd48a34eefe1b40d1f65cd8a57c726267ca74c3;hb=63f159414369b5ea19a8ca75d8cd8033c45d8341;hpb=aa106991e88b0dab33bf2a2d2409638e26a4c656 diff --git a/inc/extensions/ext-wernis.php b/inc/extensions/ext-wernis.php index 6cd48a34ee..bfb0ac521b 100644 --- a/inc/extensions/ext-wernis.php +++ b/inc/extensions/ext-wernis.php @@ -1,19 +1,23 @@ {OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data verwaltet."); + break; + + case '0.0.5': // SQL queries for v0.0.5 + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_wernis` CHANGE `wernis_type` `wernis_type` ENUM('WITHDRAW','PAYOUT','FAILED') NOT NULL DEFAULT 'FAILED'"); + + // Update notes + setExtensionUpdateNotes("IN/OUT ersetzt mit WITHDRAW/PAYOUT."); + break; + } // END - switch + break; -// Init array -global $WERNIS; -$WERNIS = array(); + case 'modify': // When the extension got modified + break; + + case 'test': // For testing purposes + break; + + case 'init': // Do stuff when extension is initialized + // Init array + $GLOBALS['wernis_data'] = array(); + break; + + default: // Unknown extension mode + logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName())); + break; +} // END - switch -// +// [EOF] ?>