X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-wernis.php;h=bfb0ac521be04f81798ce3ca79f76cdba5ca1e42;hb=d3ea83baa3f2607db46c26f7d8527c84b994f116;hp=d457bc937a78b21c8d8ab3d94f0a78529ba0ef7c;hpb=3df5cfd765d32de200a4db2a21a04cb2fde40b23;p=mailer.git diff --git a/inc/extensions/ext-wernis.php b/inc/extensions/ext-wernis.php index d457bc937a..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; + + case 'modify': // When the extension got modified + break; + + case 'test': // For testing purposes + break; -// Init array -global $WERNIS; -$WERNIS = array(); + 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] ?>