diff --git a/lib/LasTres/Controller/PJ.pm b/lib/LasTres/Controller/PJ.pm index 4fbf6f1..bdaae6f 100644 --- a/lib/LasTres/Controller/PJ.pm +++ b/lib/LasTres/Controller/PJ.pm @@ -174,6 +174,7 @@ sub _insert_new_player ( $self, $owner, $full_name, $short_name, $nick, $race ) inventory => $uuid_inventory, } )->insert; + die "Error setting leader"; $team->leader($uuid_pj); $team->update; } diff --git a/script/install.pl b/script/install.pl index b07197d..c03a7d3 100644 --- a/script/install.pl +++ b/script/install.pl @@ -26,4 +26,5 @@ my $dh = DH->new( } ); -$dh->install; +$dh->install({version => 1}); +$dh->upgrade;