Skip to content

Commit

Permalink
Stopped upgrade script repeating "Upgrade complete..." and fixed anot…
Browse files Browse the repository at this point in the history
…her "MySQL Strict Mode" bug with permissions.
  • Loading branch information
Phil Sturgeon committed Jun 17, 2010
1 parent a35b432 commit 64e3fef
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions application/controllers/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,16 @@ function _remap()
echo "<p><strong>-- Upgraded to " . $next_version . '--</strong></p>';

$db_version = $next_version;

echo "<p>The upgrade is complete, please " . anchor('admin', 'click here') . ' to go back to the Control Panel.</p>';
}

echo "<p>The upgrade is complete, please " . anchor('admin', 'click here') . ' to go back to the Control Panel.</p>';
}

function upgrade_0993()
{
echo 'Updated user_id in permission_rules to accept 0 as a value.<br/>';
$this->db->query('ALTER TABLE permission_rules user_id int(11) NOT NULL DEFAULT 0');

echo 'Adding Twitter token fields to user profiles<br />';
$this->dbforge->add_column('profiles', array(
'twitter_access_token' => array(
Expand Down

0 comments on commit 64e3fef

Please sign in to comment.