I've found in the folder the SQL commands, and tried to insert them via php My Admin, but I couldn't.
These are the commands:
Code: Select all
UPDATE phpbb_modules
SET module_auth = 'acl_a_manage_medals'
WHERE module_langname='ACP_MEDALS_TITLE';
CREATE TABLE phpbb_medals
(
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(30) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`image` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`dynamic` tinyint(1) NOT NULL DEFAULT '0',
`device` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`number` tinyint(2) NOT NULL DEFAULT '1',
`parent` smallint(5) NOT NULL DEFAULT '0',
`nominated` tinyint(1) NOT NULL DEFAULT '0',
`order_id` smallint(5) unsigned NOT NULL DEFAULT '0',
`description` varchar(256) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`points` smallint(4) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `order_id` (`order_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE phpbb_medals_awarded
(
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`medal_id` bigint(20) NOT NULL DEFAULT '0',
`user_id` bigint(20) NOT NULL DEFAULT '0',
`awarder_id` bigint(20) NOT NULL DEFAULT '0',
`awarder_un` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`awarder_color` varchar(6) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`time` int(11) NOT NULL DEFAULT '0',
`nominated` tinyint(1) NOT NULL DEFAULT '0',
`nominated_reason` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`points` smallint(4) NOT NULL DEFAULT '0',
`bbuid` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`bitfield` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`id`), KEY `time` (`time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE phpbb_medals_cats
(
`id` tinyint(5) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(30) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`order_id` tinyint(5) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `order_id` (`order_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO phpbb_styles_imageset_data
(image_name, image_filename, image_height, image_width, imageset_id)
VALUES ('icon_post_approve', 'icon_post_approve.gif', '20', '20', '1');
This is probably the same issue happened during the install.
I get this error:
Code: Select all
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'COLLATE utf8_bin NOT NULL DEFAULT '',
`image` varchar(100
It should be simple to fix it by removing the collate part, can you help me?
Thanks.