X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-country.php;h=729594731d6ac49312b262e90ca4964dd0810408;hb=544aa3fb48613160f812515673e64c46d18d2e1d;hp=5ed4b84c997ceb8ea075be5075294271a09bef6e;hpb=16b311c338bb4f8436e2ed9e76cb1cd5f3741640;p=mailer.git diff --git a/inc/extensions/ext-country.php b/inc/extensions/ext-country.php index 5ed4b84c99..729594731d 100644 --- a/inc/extensions/ext-country.php +++ b/inc/extensions/ext-country.php @@ -53,14 +53,14 @@ switch (getExtensionMode()) { case 'register': // Do stuff when installation is running (modules.php?module=admin is called) // SQL commands to run addDropTableSql('countries'); - addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_countries` ( + addCreateTableSql('countries', "( `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, `code` CHAR(2) NOT NULL DEFAULT 'DE', `descr` VARCHAR(255) NOT NULL DEFAULT 'Deutschland', `is_active` ENUM('Y','N') NOT NULL DEFAULT 'N', KEY (`code`), PRIMARY KEY (`id`) -) ENGINE = {?_TABLE_TYPE?} CHARACTER SET utf8 COLLATE utf8_general_ci"); +) ENGINE = {?_TABLE_TYPE?} CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT = 'Country codes and their full-length descriptions'"); addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_countries` (code, descr, is_active) VALUES ('DE','Deutschland','Y')"); // Admin menu