]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-booking.php
Table user_book renamed to user_booking, isExtensionOlder() should not be used, inste...
[mailer.git] / inc / extensions / ext-booking.php
index 4988be1bd67728cc1952fab8ec09405f92a01130..20c60dd08f81608b0ee6402db4fbb783faecf902 100644 (file)
@@ -50,14 +50,14 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // Configuration entries
                addConfigAddSql('booking_per_page', 'TINYINT(3) UNSIGNED NOT NULL DEFAULT 10');
                addConfigAddSql('booking_purge', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT ' . (getOneDay() * 3));
 
                // Drop/create table for user bookings
-               addDropTableSql('user_book');
-               addCreateTableSql('user_book', "(
+               addDropTableSql('user_booking');
+               addCreateTableSql('user_booking', "(
 `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
 `userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `subject` VARCHAR(255) NOT NULL DEFAULT 'missing',
@@ -82,7 +82,7 @@ PRIMARY KEY (`id`)
                break;
 
        case 'remove': // Do stuff when removing extension
-               addDropTableSql('user_book');
+               addDropTableSql('user_booking');
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `what` IN ('config_booking','list_booking')");
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `what`='booking'");