From caa8fa7b75d84cba3f0918809ff6be3bac4de456 Mon Sep 17 00:00:00 2001 From: Sergiotarxz Date: Mon, 5 Jun 2023 02:18:03 +0200 Subject: [PATCH] Fixing install. --- lib/LasTres/Controller/PJ.pm | 1 + script/install.pl | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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;