... | ... |
@@ -316,14 +316,16 @@ EOS |
316 | 316 |
my $user_columns = [ |
317 | 317 |
"admin not null default '0'", |
318 | 318 |
"password not null default ''", |
319 |
- "salt not null default ''" |
|
319 |
+ "salt not null default ''", |
|
320 |
+ "mail not null default ''", |
|
321 |
+ "name not null default ''" |
|
320 | 322 |
]; |
321 | 323 |
for my $column (@$user_columns) { |
322 | 324 |
eval { $dbi->execute("alter table user add column $column") }; |
323 | 325 |
} |
324 | 326 |
|
325 | 327 |
# Check user table |
326 |
- eval { $dbi->select([qw/row_id id admin password salt/], table => 'user') }; |
|
328 |
+ eval { $dbi->select([qw/row_id id admin password salt mail name/], table => 'user') }; |
|
327 | 329 |
if ($@) { |
328 | 330 |
my $error = "Can't create user table properly: $@"; |
329 | 331 |
$self->app->log->error($error); |