// Drop/create table for user bookings
addDropTableSql('user_booking');
- addCreateTableSql('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',
`points` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.0000,
`comments` TINYTEXT NULL DEFAULT NULL,
`recorded` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-INDEX (`userid`),
-PRIMARY KEY (`id`)
-) ENGINE = {?_TABLE_TYPE?} CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT = 'Member points booking table'");
+PRIMARY KEY (`id`),
+INDEX (`userid`)",
+ 'Member points booking table');
// Admin menu
addAdminMenuSql('setup','config_booking','Kontoauszug','Einstellungen am Kontoauszug für Mitglieder vornehmen.', 14);
// Add the filters
registerFilter('post_add_points', 'ADD_BOOKING_RECORD', false, true, isExtensionDryRun());
- registerFilter('sub_points', 'ADD_BOOKING_RECORD', false, true, isExtensionDryRun());
+ registerFilter('post_sub_points', 'ADD_BOOKING_RECORD', false, true, isExtensionDryRun());
break;
case 'remove': // Do stuff when removing extension
// Remove the filters
unregisterFilter(__FUNCTION__, __LINE__, 'post_add_points', 'ADD_BOOKING_RECORD', true, isExtensionDryRun());
- unregisterFilter(__FUNCTION__, __LINE__, 'sub_points', 'ADD_BOOKING_RECORD', true, isExtensionDryRun());
+ unregisterFilter(__FUNCTION__, __LINE__, 'post_sub_points', 'ADD_BOOKING_RECORD', true, isExtensionDryRun());
break;
case 'activate': // Do stuff when admin activates this extension