16
Installation problems / Re: Error upgrade 1.6.2 -- 1.7.0
« on: June 30, 2010, 12:35:35 pm »
Hi,
Try replacing lines 6 - 9 of "public/upgrade/templates/db_migration/1_7_pastafrola.php"
with these ones:
this will prevent that failure when insterting a row that already exists.
Try replacing lines 6 - 9 of "public/upgrade/templates/db_migration/1_7_pastafrola.php"
Code: [Select]
INSERT INTO `<?php echo $table_prefix ?>file_types` (`extension`, `icon`, `is_searchable`, `is_image`) VALUES
('slim', 'ppt.png', 1, 0),
('html', 'html.png', 1, 0),
('webfile', 'webfile.png', 0, 0);
with these ones:
Code: [Select]
INSERT INTO `<?php echo $table_prefix ?>file_types` (`extension`, `icon`, `is_searchable`, `is_image`) VALUES
('slim', 'ppt.png', 1, 0),
('html', 'html.png', 1, 0),
('webfile', 'webfile.png', 0, 0)
ON DUPLICATE KEY UPDATE id=id;
this will prevent that failure when insterting a row that already exists.