diff --git a/cosmogramme/sql/patch/patch_265.php b/cosmogramme/sql/patch/patch_265.php index b24d8022d077e6228ca45cee1ebb4d938484f0a9..79af65cba287f5bd2463c72980718b705250bb91 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']));