From dbb49145df5a041ac99e598241d953edfc48e26d Mon Sep 17 00:00:00 2001
From: pbarroca <pbarroca@afi-sa.fr>
Date: Wed, 2 Sep 2015 16:18:39 +0200
Subject: [PATCH] rel #21694 : reference id between models and their pseudo
 records defaults no more to 0

---
 cosmogramme/sql/patch/patch_265.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cosmogramme/sql/patch/patch_265.php b/cosmogramme/sql/patch/patch_265.php
index b24d8022d07..79af65cba28 100644
--- a/cosmogramme/sql/patch/patch_265.php
+++ b/cosmogramme/sql/patch/patch_265.php
@@ -6,8 +6,8 @@ foreach([['table' => 'album', 'id' => 'notice_id'],
          ['table' => 'sito_url', 'id' => 'id_notice']]
         as $params) {
 
-  $adapter->query(sprinf('ALTER TABLE `%s` MODIFY `%s` int(11) null default null',
-                         $params['table'], $params['id']));
+  $adapter->query(sprintf('ALTER TABLE `%s` MODIFY `%s` int(11) null default null',
+                          $params['table'], $params['id']));
 
   $adapter->query(sprintf('UPDATE `%s` SET `%s`=null WHERE `%s`=0',
                           $params['table'], $params['id'], $params['id']));
-- 
GitLab