Introduced wrapper function addCreateTableSql(), fixed parameter order:
[mailer.git] / inc / extensions / ext-country.php
index fd04c72618c112742059f0a731b05c7e8fcefd76..729594731d6ac49312b262e90ca4964dd0810408 100644 (file)
@@ -53,7 +53,7 @@ switch (getExtensionMode()) {
        case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
                // SQL commands to run
                addDropTableSql('countries');
        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',
 `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
 `code` CHAR(2) NOT NULL DEFAULT 'DE',
 `descr` VARCHAR(255) NOT NULL DEFAULT 'Deutschland',