fixing no_restart detection (bug 621736)

* the beginning of the migration is copied from 116 because none of those
  changes are visible in prod
* This reverts commit a325fff897.
This commit is contained in:
Jeff Balogh 2011-01-19 16:40:03 -08:00
Родитель 50732c32fb
Коммит ff9e3d7aa2
2 изменённых файлов: 15 добавлений и 1 удалений

Просмотреть файл

@ -42,7 +42,7 @@
<div id="addon-summary" class="primary">
<p{{ addon.summary|locale_html }}>{{ addon.summary|nl2br }}</p>
{% with files = addon.current_version.all_files %}
{% if files and (files[0].no_restart or files[0].jetpack) %}
{% if files and files[0].no_restart %}
<div id="no-restart" class="js-hidden">
<span id="no-restart-msg">{{ _('No restart required') }}</span>
</div>

Просмотреть файл

@ -0,0 +1,14 @@
-- See bug 613687
-- This didn't stick in migration 116. Let's try again!
UPDATE files SET no_restart=1 where id IN (
153353, 220208, 231187, 162066, 199425,
204316, 187588, 220153, 181744, 228384,
197222, 213956, 214783, 200278,
223418, 216805, 222528, 199423,
220151, 216008, 162165, 222531,
216820, 184620, 161922, 13492,
182410, 175844, 200272, 204318,
182391, 222529, 197224, 229488,
204928, 222199, 189774, 204311);
UPDATE files SET no_restart=1 WHERE jetpack=1;