+
+ case '0.2.9': // SQL queries for v0.2.9
+ addDropTableSql('beg_referals');
+ addCreateTableSql('beg_referals', "
+`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
+`userid` BIGINT(20) UNSIGNED NULL DEFAULT NULL,
+`remote_ip` VARCHAR(15) NOT NULL DEFAULT '0.0.0.0',
+`timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
+`referal_url` TINYTEXT NOT NULL,
+PRIMARY KEY (`id`),
+INDEX (`userid`)",
+ 'Recorded referral URLs');
+
+ // Add admin menu
+ addAdminMenuSql('user','list_beg_referal_urls','Bettel-Referrals auflisten','Listet alle Bettellink-Aufrufe inklusive Referral-URL auf.','13');
+
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Loggen der Referral-URLs hinzugefügt.");
+ break;
+
+ case '0.3.0': // SQL queries for v0.3.0
+ addConfigDropSql('beg_mode');
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`) VALUES ('beg','points','LOCKED','DIRECT')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`) VALUES ('monthly_beg','points','LOCKED','DIRECT')");
+
+ // This depends on ext-sql_patches
+ addExtensionDependency('sql_patches');
+
+ // Update notes
+ setExtensionUpdateNotes("Monatliche Bettelrallye und die erbettelten {?POINTS?} werden nun über die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
+ break;
+
+ case '0.3.1': // SQL queries for v0.3.1
+ // Add/move menu
+ addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `what`='beg2'");
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_guest_menu` SET `action`='members',`sort`=3 WHERE `what`='beg' LIMIT 1");
+ addMemberMenuSql('rals', 'beg2', 'Bettel-Rallye', 3);
+
+ // Update notes
+ setExtensionUpdateNotes("Bettel-Rallye re-hinzugefügt.");
+ break;
+
+ case '0.3.2': // SQL queries for v0.3.2
+ // Add module entry
+ addModuleSql('beg', 'Y', 'Y', 'N', 'N');
+
+ // Set module title
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `title`='Betteln bei {OPEN_CONFIG}MAIN_TITLE{CLOSE_CONFIG}' WHERE `module`='beg' AND `title`='' LIMIT 1");
+
+ // Update notes
+ setExtensionUpdateNotes("Modul registriert und bei leerem Titel mit einem Standarttitel versehen.");
+ break;