mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
Fehler in script.php und update.php behoben
This commit is contained in:
@@ -5309,7 +5309,7 @@ function updateDatabase(): void
|
|||||||
die($db->stderr(true));
|
die($db->stderr(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
$query = "ALTER TABLE `stfv_sportsmanager_team` ADD `teamname_kurz` VARCHAR(24) NOT NULL DEFAULT '' AFTER `teamname`;";
|
$query = "ALTER TABLE `#__sportsmanager_team` ADD `teamname_kurz` VARCHAR(24) NOT NULL DEFAULT '' AFTER `teamname`;";
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
if (!$db->execute()) {
|
if (!$db->execute()) {
|
||||||
die($db->stderr(true));
|
die($db->stderr(true));
|
||||||
|
|||||||
@@ -137,6 +137,7 @@ return new class () implements InstallerScriptInterface
|
|||||||
. "\n `tisch` tinytext DEFAULT NULL,"
|
. "\n `tisch` tinytext DEFAULT NULL,"
|
||||||
. "\n `zeitpunkt` datetime DEFAULT NULL,"
|
. "\n `zeitpunkt` datetime DEFAULT NULL,"
|
||||||
. "\n `spieltag` smallint(6) DEFAULT NULL,"
|
. "\n `spieltag` smallint(6) DEFAULT NULL,"
|
||||||
|
. "\n `spieltag_titel` VARCHAR(32) NOT NULL DEFAULT '',"
|
||||||
. "\n `spiel_nr` tinyint(4) DEFAULT NULL,"
|
. "\n `spiel_nr` tinyint(4) DEFAULT NULL,"
|
||||||
. "\n `heim_punkte` smallint(6) DEFAULT NULL,"
|
. "\n `heim_punkte` smallint(6) DEFAULT NULL,"
|
||||||
. "\n `gast_punkte` smallint(6) DEFAULT NULL,"
|
. "\n `gast_punkte` smallint(6) DEFAULT NULL,"
|
||||||
@@ -682,7 +683,8 @@ return new class () implements InstallerScriptInterface
|
|||||||
. "\n `verein_id` int(11) DEFAULT NULL,"
|
. "\n `verein_id` int(11) DEFAULT NULL,"
|
||||||
. "\n `veranstaltung_id` int(11) NOT NULL DEFAULT '0',"
|
. "\n `veranstaltung_id` int(11) NOT NULL DEFAULT '0',"
|
||||||
. "\n `setzliste_nr` tinyint(4) DEFAULT NULL,"
|
. "\n `setzliste_nr` tinyint(4) DEFAULT NULL,"
|
||||||
. "\n `teamname` varchar(50) NOT NULL,"
|
. "\n `teamname` varchar(50) NOT NULL DEFAULT '',"
|
||||||
|
. "\n `teamname_kurz` VARCHAR(24) NOT NULL DEFAULT '',"
|
||||||
. "\n `tischtyp` varchar(200) DEFAULT NULL,"
|
. "\n `tischtyp` varchar(200) DEFAULT NULL,"
|
||||||
. "\n `tischeigenschaften` varchar(200) DEFAULT NULL,"
|
. "\n `tischeigenschaften` varchar(200) DEFAULT NULL,"
|
||||||
. "\n `zusatzpunkte` float(6,2) DEFAULT NULL,"
|
. "\n `zusatzpunkte` float(6,2) DEFAULT NULL,"
|
||||||
@@ -1037,6 +1039,7 @@ return new class () implements InstallerScriptInterface
|
|||||||
. "\n `tabellenwertung` tinyint(4) NOT NULL DEFAULT '0',"
|
. "\n `tabellenwertung` tinyint(4) NOT NULL DEFAULT '0',"
|
||||||
. "\n `direktervergleich` tinyint(4) NOT NULL DEFAULT '0',"
|
. "\n `direktervergleich` tinyint(4) NOT NULL DEFAULT '0',"
|
||||||
. "\n `unterteilung` tinyint(4) NOT NULL DEFAULT '0',"
|
. "\n `unterteilung` tinyint(4) NOT NULL DEFAULT '0',"
|
||||||
|
. "\n `spieltag_titel_zeigen` INT(4) NOT NULL DEFAULT '0',"
|
||||||
. "\n `erster_tag` date NOT NULL DEFAULT '0000-00-00',"
|
. "\n `erster_tag` date NOT NULL DEFAULT '0000-00-00',"
|
||||||
. "\n `letzter_tag` date DEFAULT NULL,"
|
. "\n `letzter_tag` date DEFAULT NULL,"
|
||||||
. "\n `elo_wertung` tinyint(4) DEFAULT NULL,"
|
. "\n `elo_wertung` tinyint(4) DEFAULT NULL,"
|
||||||
@@ -1113,7 +1116,7 @@ return new class () implements InstallerScriptInterface
|
|||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
$query = "INSERT IGNORE #__sportsmanager_einstellungen SET name = 'datenbank_version', wert = '103';";
|
$query = "INSERT IGNORE #__sportsmanager_einstellungen SET name = 'datenbank_version', wert = '105';";
|
||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user