]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-country.php
Mailer continued, sub-id tracking continued:
[mailer.git] / inc / extensions / ext-country.php
index 46fceed039c2e6d4bdb4e31310291598e28abdcd..cdf0382a34eeaaa643785eee699ff75ff08f743b 100644 (file)
@@ -59,7 +59,7 @@ switch (getExtensionMode()) {
 `descr` VARCHAR(255) NOT NULL DEFAULT 'Deutschland',
 `is_active` ENUM('Y','N') NOT NULL DEFAULT 'N',
 PRIMARY KEY (`id`),
-UNIQUE (`code`)",
+UNIQUE INDEX (`code`)",
                        'Country codes and their full-length descriptions');
 
                // Insert first (Germany) country
@@ -69,8 +69,11 @@ UNIQUE (`code`)",
                addAdminMenuSql('country', NULL, 'Ländercodes verwalten','Stellen Sie hier Ländercodes ein, damit auch internationale Mitglieder sich zu Ihrem {OPEN_CONFIG}mt_word{CLOSE_CONFIG} anmelden können.', 8);
                addAdminMenuSql('country','list_country','Verwalten','Hinzufügen, Ändern und Löschen von Ländercodes.', 1);
 
+               // This extension depends on ext-user
+               addExtensionDependency('user');
+
                // Add entry to user table
-               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD country_code BIGINT(20) UNSIGNED NOT NULL DEFAULT 1");
+               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `country_code` BIGINT(20) UNSIGNED NOT NULL DEFAULT 1");
                break;
 
        case 'remove': // Do stuff when removing extension