]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-wernis.php
Referal system refactured (and some parts fixed), wrapper function introduced:
[mailer.git] / inc / extensions / ext-wernis.php
index 3f6a9240ac9cd6ccae3f87cef770f7e7b51b8093..0418aa952c058b0f2ee5d431c83b3c88e4a86efc 100644 (file)
@@ -41,10 +41,10 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Version of this extension
-setThisExtensionVersion('0.0.3');
+setThisExtensionVersion('0.0.4');
 
 // Version history array (add more with , '0.0.1' and so on)
-setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3'));
+setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4'));
 
 switch (getExtensionMode()) {
        case 'register': // Do stuff when installation is running
@@ -134,6 +134,16 @@ INDEX (`userid`)",
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("WDS66-Username muss nun eintragen werden (API-Anpassung).");
                                break;
+
+                       case '0.0.4': // SQL queries for v0.0.4
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`) VALUES ('wernis_withdraw','order_points','LOCKED','DIRECT')");
+
+                               // This depends on ext-sql_patches
+                               addExtensionDependency('sql_patches');
+
+                               // Update notes
+                               setExtensionUpdateNotes("&Uuml;berweisungen vom Portal werden nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
+                               break;
                } // END - switch
                break;