Skip to content

Commit

Permalink
Merge pull request #1177 from JN-Jones/fix-1173
Browse files Browse the repository at this point in the history
Fixes #1173 Field 'lastip' doesn't have a default value
  • Loading branch information
Diogo Parrinha committed Aug 15, 2014
2 parents bdb8549 + 34fa548 commit e4b3e92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/resources/upgrade30.php
Original file line number Diff line number Diff line change
Expand Up @@ -2060,10 +2060,10 @@ function upgrade30_dbchanges_ip()
$db->modify_column($table, $column, "bytea USING {$column}::bytea", 'set', "''");
break;
case "sqlite":
$db->modify_column($table, $column, "blob(16) NOT NULL");
$db->modify_column($table, $column, "blob(16) NOT NULL default ''");
break;
default:
$db->modify_column($table, $column, "varbinary(16) NOT NULL");
$db->modify_column($table, $column, "varbinary(16) NOT NULL default ''");
break;
}
if($mybb->input['iptable'] < 10)
Expand Down

0 comments on commit e4b3e92

Please sign in to comment.