# This is a fix for InnoDB in MySQL >= 4.1.x # It "suspends judgement" for fkey relationships until are tables are set. SET FOREIGN_KEY_CHECKS = 0; ALTER TABLE `product` CHANGE `position` `position` INT( 11 ) NOT NULL DEFAULT '0'; ALTER TABLE `product_version` CHANGE `position` `position` INT( 11 ) NOT NULL DEFAULT '0'; SELECT @max := MAX(`id`) FROM `message`; SET @max := @max+1; INSERT INTO `message` (`id`, `name`, `secured`, `created_at`, `updated_at`, `version`, `version_created_at`, `version_created_by`) VALUES (@max, 'lost_password', NULL, NOW(), NOW(), 2, NOW(), NULL); INSERT INTO `message_i18n` (`id`, `locale`, `title`, `subject`, `text_message`, `html_message`) VALUES {foreach $locales as $locale} (@max, '{$locale}', {intl l='Your new password' locale=$locale}, {intl l='Your new password' locale=$locale}, {intl l='Your new passord is : {$password}' locale=$locale}, '\r\n\r\n
\r\n\r\n{intl l='You can now login at' in_string=1 use_default=1 locale=$locale} {ldelim}config key="urlsite"{rdelim}.
{intl l='You have lost your password
\r\nPlease, change this password after your first connection' in_string=1 use_default=1 locale=$locale}