Adding of network advert types partly finished, hard-coded table type fixed to dynamic
[mailer.git] / inc / extensions / ext-doubler.php
index 255966532692bcbef9b020203d5920a726b6fd83..5e2416bf71bd2a4021cb051d88bb4fd2cd196b49 100644 (file)
@@ -52,18 +52,18 @@ switch (getExtensionMode()) {
                // Doubler table
                addExtensionSql("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_doubler`");
                addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_doubler` (
                // Doubler table
                addExtensionSql("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_doubler`");
                addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_doubler` (
-id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-userid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
-refid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
-points FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
-remote_ip VARCHAR(15) NOT NULL DEFAULT '0.0.0.0',
-timemark VARCHAR(10) NOT NULL DEFAULT '',
-completed ENUM('Y','N') NOT NULL DEFAULT 'N',
-is_ref ENUM('Y','N') NOT NULL DEFAULT 'N',
-KEY (refid),
-KEY (userid),
-PRIMARY KEY (id)
-)TYPE=MYISAM");
+`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
+`userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`refid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`points` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
+`remote_ip` VARCHAR(15) NOT NULL DEFAULT '0.0.0.0',
+`timemark` VARCHAR(10) NOT NULL DEFAULT '',
+`completed` ENUM('Y','N') NOT NULL DEFAULT 'N',
+`is_ref` ENUM('Y','N') NOT NULL DEFAULT 'N',
+KEY (`refid`),
+KEY (`userid`),
+PRIMARY KEY (`id`)
+)TYPE={?_TABLE_TYPE?}");
 
                //
                // --- SETTINGS ---
 
                //
                // --- SETTINGS ---