diff --git a/README.txt b/README.txt index 26e403b2..b10dca09 100644 --- a/README.txt +++ b/README.txt @@ -52,6 +52,11 @@ The rest should be automatic, just unzip into a clean folder and copy across config.php, images and thumbs folders from the old version. This includes automatically messing with the database -- back it up first! +If there are any errors with the upgrade process, "in_upgrade=true" will +be left in the config table and the process will be paused for the admin +to investigate. Deleting this config entry and refreshing the page should +continue the upgrade from where it left off. + Upgrade from earlier versions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -63,7 +68,6 @@ enough to be a pain. Custom Configuration ~~~~~~~~~~~~~~~~~~~~ - Various aspects of Shimmie can be configured to suit your site specific needs via the file "config.php" (created after installation). Take a look at "core/default_config.inc.php" for the available options diff --git a/ext/upgrade/main.php b/ext/upgrade/main.php index 5471d573..f5db9a10 100644 --- a/ext/upgrade/main.php +++ b/ext/upgrade/main.php @@ -44,7 +44,7 @@ class Upgrade extends Extension { $tables = $database->get_col("SHOW TABLES"); foreach($tables as $table) { log_info("upgrade", "converting $table to innodb"); - $database->execute("ALTER TABLE $table TYPE=INNODB"); + $database->execute("ALTER TABLE $table ENGINE=INNODB"); } } diff --git a/lib/shimmie.js b/lib/shimmie.js index b277b834..7b5ef6f3 100644 --- a/lib/shimmie.js +++ b/lib/shimmie.js @@ -43,7 +43,7 @@ $(document).ready(function() { $(".shm-clink").each(function(idx, elm) { var target_id = $(elm).data("clink-sel"); - if(target_id && $(target_id)) { + if(target_id && $(target_id).length > 0) { // if the target comment is already on this page, don't bother // switching pages $(elm).attr("href", target_id);