Updated domain without a dash :(
[mailer.git] / inc / extensions / user / mode-update.php
index a44e5dc..7ff71f3 100644 (file)
@@ -405,6 +405,12 @@ INDEX (`refid`)",
                                break;
 
                        case '0.5.3': // SQL queries for v0.5.3
+                               // Is the PHP extension 'recode' activated
+                               if (!extension_loaded('recode')) {
+                                       // This update requires 'recode'
+                                       enableExtensionReportingFailure();
+                               } // END - if
+
                                // Register filter
                                registerFilter(__FILE__, __LINE__, 'post_refid_validation', 'HANDLE_USER_SUBID', FALSE, TRUE, isExtensionDryRun());
                                registerFilter(__FILE__, __LINE__, 'pre_user_registration', 'SUBID_USER_REGISTRATION_ADD_SQL_COLUMNS', FALSE, TRUE, isExtensionDryRun());
@@ -519,6 +525,27 @@ INDEX (`subid`)",
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Men&uuml;punkt umbenannt um Platz f&uuml;r Konflikt mit <strong>what-config_cats.php</strong> zu schaffen.");
                                break;
+
+                       case '0.6.1': // SQL queries for v0.6.1
+                               // Add table for user login provider
+                               addDropTableSql('user_login_provider');
+                               addCreateTableSql('user_login_provider', "
+`provider_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
+`provider_name` VARCHAR(255) NOT NULL DEFAULT 'local_generic_user_login',
+`provider_extension` VARCHAR(255) NOT NULL DEFAULT 'user',
+`provider_is_active` ENUM('Y','N') NOT NULL DEFAULT 'N',
+PRIMARY KEY (`provider_id`)",
+                                       'User login providers');
+
+                               // Add (activated) default entry
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_user_login_provider` (`provider_is_active`) VALUES ('Y')");
+
+                               // Admin menu
+                               addAdminMenuSql('setup', 'list_user_login_provider', 'MLP verwalten', 'Alle Mitgliederlogin-Provider (MLP) auflisten und verwalten.', 10);
+
+                               // Update notes (these will be set as task text!)
+                               setExtensionUpdateNotes("Tabelle f&uuml;r Mitgliedslogin-Provider hinzugef&uuml;gt.");
+                               break;
                } // END - switch
 
 // [EOF]