# 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='changing password email for' in_string=1 use_default=1 locale=$locale} {ldelim}config key="urlsite"{rdelim} \r\n{ldelim}literal{rdelim}{literal}\r\n\r\n{/literal}{ldelim}/literal{rdelim}\r\n\r\n\r\n
\r\n
\r\n

{ldelim}config key="store_name"{rdelim}

\r\n

{intl l='changing password email for' in_string=1 use_default=1 locale=$locale}

\r\n
{intl l='You have lost your password
\r\nYour new password is' in_string=1 use_default=1 locale=$locale} {ldelim}$password{rdelim}.
\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}

\r\n\r\n'){if ! $locale@last},{/if} {/foreach} ; UPDATE `config` SET `value`='2.0.0-RC1' WHERE `name`='thelia_version'; UPDATE `config` SET `value`='RC1' WHERE `name`='thelia_extra_version'; SET FOREIGN_KEY_CHECKS = 1;