]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-refback.php
addCreateTableSql() is now more encapsulated
[mailer.git] / inc / extensions / ext-refback.php
index 12ab9d99ff90490e2bf3883140be5122ab1cac56..db45a2050442cf7f91e817860a73c0d606865cc8 100644 (file)
@@ -50,18 +50,18 @@ switch (getExtensionMode()) {
        case 'register': // Do stuff when installation is running
                // SQL commands to run
                addDropTableSql('user_refs');
-               addCreateTableSql('user_refs', "(
-`id` BIGINT(20) UNSIGNED NOT NULL auto_increment,
+               addCreateTableSql('user_refs', "
+`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
 `userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `level` smallINT(6) UNSIGNED NOT NULL DEFAULT 0,
 `refid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `refback` float(4,1) NOT NULL DEFAULT 0.0,
-`points` FLOAT( 20,5) DEFAULT 0.00000 NOT NULL,
+`points` FLOAT(20,5) DEFAULT 0.00000 NOT NULL,
 PRIMARY KEY (`id`),
 UNIQUE `user_refid` (`userid`,`level`,`refid`),
-KEY (`level`),
-KEY (`refid`)
-) ENGINE = {?_TABLE_TYPE?} CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT = 'User Referals With Refback'");
+INDEX (`level`),
+INDEX (`refid`)",
+                       'User Referals With Refback');
                addMemberMenuSql('main', 'refback', 'Ref-Back einstellen', 4);
 
                // Execute this special file on registration