I’m attempting to upgrade from 2.1.3 to 2.9 (I realize this should have been done before now; just took over this site recently). The upgrade fails at 2.5.5 with the following error:
Error Number: 1054
Unknown column ‘protect_javascript’ in ‘field list’
UPDATE `exp_templates` SET `template_id` = ‘36’, `site_id` = ‘1’, `group_id` = ‘10’, `template_name` = ‘.client_name’, `save_template_file` = ‘n’, `template_type` = ‘webpage’, `template_data` = ‘{exp:channel:entries channel=\"projects\" entry_id=\"{embed:project_entry_id}\” limit=\“1\” dynamic=\“off\”}\n\n{work_client}{work_client:title}{/work_client}\n\n{/exp:channel:entries}’, `template_notes` = ‘’, `edit_date` = 1405662666, `last_author_id` = ‘1’, `cache` = ‘n’, `refresh` = ‘0’, `no_auth_bounce` = ‘’, `enable_http_auth` = ‘n’, `allow_php` = ‘n’, `php_parse_location` = ‘o’, `hits` = ‘0’, `protect_javascript` = NULL WHERE `site_id` = ‘1’ AND `template_id` = ‘36’
Filename: /home/skeo/webapps/skeo_dev/system/expressionengine/models/template_model.php
Line Number: 389
I tried manually adding a protect_javascript column of type char(1) (guessed based on documentation) but I still get the error. Anyone encountered this? I’ve seen discussion of this happening in other upgrades with other fields but not this one.