]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-sql_patches.php
Code style changed, ext-user continued:
[mailer.git] / inc / extensions / ext-sql_patches.php
index 574302f55f58cae228fa9184b9410fa85a8492bd..34dd773e49b78424ed4d7ad6274a6d977092f817 100644 (file)
@@ -104,9 +104,9 @@ IN (
                unregisterExtensionPointsData('admin_add_all_ref');
 
                // Unregister filter
-               unregisterFilter(__FILE__, __LINE__, 'member_login_check', 'RESET_USER_LOGIN_FAILURE', true, isExtensionDryRun());
-               unregisterFilter(__FILE__, __LINE__, 'add_history_entry', 'ADD_HISTORY_ENTRY', true, isExtensionDryRun());
-               unregisterFilter(__FILE__, __LINE__, 'init', 'GENERATE_FILE_SECRET_HASH', true, isExtensionDryRun());
+               unregisterFilter(__FILE__, __LINE__, 'member_login_check', 'RESET_USER_LOGIN_FAILURE', TRUE, isExtensionDryRun());
+               unregisterFilter(__FILE__, __LINE__, 'add_history_entry', 'ADD_HISTORY_ENTRY', TRUE, isExtensionDryRun());
+               unregisterFilter(__FILE__, __LINE__, 'init', 'GENERATE_FILE_SECRET_HASH', TRUE, isExtensionDryRun());
                break;
 
        case 'activate': // Do stuff when admin activates this extension
@@ -398,7 +398,7 @@ INDEX (`la_what`)",
 `la_posx` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `la_posy` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 PRIMARY KEY (`id`),
-UNIQUE (`la_id`),
+UNIQUE INDEX (`la_id`),
 INDEX (`la_posx`),
 INDEX (`la_posy`)",
                                        'LAS position and title data');
@@ -561,7 +561,7 @@ INDEX (`admin_id`)",
                        case '0.5.0': // SQL queries for v0.5.0
                                addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_refsystem` DROP INDEX `level`');
                                addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_refsystem` DROP INDEX `userid`');
-                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_refsystem` ADD UNIQUE INDEX `userid_level` (`userid`,`level`)');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_refsystem` ADD UNIQUE INDEX `userid_level` (`userid`, `level`)');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Referral-System unterstützt nun detailierte Referral-Übersicht und vieles mehr.");
@@ -631,7 +631,7 @@ INDEX (`admin_id`)",
 `filter_active` ENUM('N','Y') NOT NULL DEFAULT 'Y',
 `filter_counter` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 PRIMARY KEY (`filter_id`),
-UNIQUE INDEX `name_function` (`filter_name`,`filter_function`)",
+UNIQUE INDEX `name_function` (`filter_name`, `filter_function`)",
                                        'Filter system');
 
                                // Admin menu
@@ -717,7 +717,7 @@ UNIQUE INDEX `name_function` (`filter_name`,`filter_function`)",
 
                        case '0.6.9': // SQL queries for 0.6.9
                                // Register filter
-                               registerFilter(__FILE__, __LINE__, 'member_login_check', 'RESET_USER_LOGIN_FAILURE', false, true, isExtensionDryRun());
+                               registerFilter(__FILE__, __LINE__, 'member_login_check', 'RESET_USER_LOGIN_FAILURE', FALSE, TRUE, isExtensionDryRun());
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Filter zum Zurücksetzens des fehlgeschlagenen Mitgliederlogins hinzugefügt (internes TODO).");
@@ -738,7 +738,7 @@ INDEX (`ip`)",
                                addConfigAddSql('dns_cache_timeout', 'BIGINT(20) NOT NULL DEFAULT ' . (60*60*24));
 
                                // Register filter
-                               registerFilter(__FILE__, __LINE__, 'reset', 'CLEANUP_DNS_CACHE', false, true, isExtensionDryRun());
+                               registerFilter(__FILE__, __LINE__, 'reset', 'CLEANUP_DNS_CACHE', FALSE, TRUE, isExtensionDryRun());
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("IP-Resolver-Klasse hinzugefügt, um bei der Erweiterung ext-network DNS-Anfragen einzusparen.");
@@ -875,7 +875,7 @@ INDEX (`history_last_used` DESC)",
                                        'History of used data');
 
                                // Register filter
-                               registerFilter(__FILE__, __LINE__, 'add_history_entry', 'ADD_HISTORY_ENTRY', false, true, isExtensionDryRun());
+                               registerFilter(__FILE__, __LINE__, 'add_history_entry', 'ADD_HISTORY_ENTRY', FALSE, TRUE, isExtensionDryRun());
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Allgemeine Historie-Tabelle hinzugefügt.");
@@ -894,7 +894,7 @@ INDEX (`history_last_used` DESC)",
                                addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_points_data` SET `payment_method`='REFERRAL' WHERE `payment_method` != 'DIRECT'");
 
                                // Update notes (these will be set as task text!)
-                               setExtensionUpdateNotes("ReferralREFERRAL soll es überall heissen (ist ein Typo nur mit einem R zu schreiben).");
+                               setExtensionUpdateNotes("Referral/REFERRAL soll es überall heissen (ist ein Typo nur mit einem R zu schreiben).");
                                break;
 
                        case '0.8.7': // SQL queries for v0.8.7
@@ -921,7 +921,7 @@ INDEX (`history_last_used` DESC)",
 
                        case '0.9.0': // SQL queries for v0.9.0
                                // Register filter
-                               registerFilter(__FILE__, __LINE__, 'init', 'GENERATE_FILE_SECRET_HASH', false, true, isExtensionDryRun());
+                               registerFilter(__FILE__, __LINE__, 'init', 'GENERATE_FILE_SECRET_HASH', FALSE, TRUE, isExtensionDryRun());
 
                                // Register points data
                                registerExtensionPointsData('admin_add_single', 'points', 'LOCKED', 'DIRECT');