From be7527e994e69233e5f1c0ce7aa94644418a5974 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Tue, 22 Sep 2026 09:52:09 +0200 Subject: [PATCH] increase length of column taglib in table public.tbl_notiz_typ --- .../75959_StudVw_Automatische_Tags.php | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/system/dbupdate_3.4/75959_StudVw_Automatische_Tags.php b/system/dbupdate_3.4/75959_StudVw_Automatische_Tags.php index 1954ae48d..13955194f 100644 --- a/system/dbupdate_3.4/75959_StudVw_Automatische_Tags.php +++ b/system/dbupdate_3.4/75959_StudVw_Automatische_Tags.php @@ -4,7 +4,7 @@ if (! defined('DB_NAME')) exit('No direct script access allowed'); //Add column entwicklungs_id to bis.tbl_entwicklungsteam if(!@$db->db_query("SELECT taglib FROM public.tbl_notiz_typ LIMIT 1")) { - $qry = 'ALTER TABLE public.tbl_notiz_typ ADD COLUMN taglib character varying(32);'; + $qry = 'ALTER TABLE public.tbl_notiz_typ ADD COLUMN taglib character varying(255);'; if(!$db->db_query($qry)) echo ' public.tbl_notiz_typ '.$db->db_last_error().'
'; @@ -137,3 +137,30 @@ foreach ($tags as $tag) { } } } + +// increase length of taglib column if created with length < 255 +$ctaglibsql = <<db_query($ctaglibsql)) +{ + if($db->db_num_rows($res) > 0) + { + $qry = 'ALTER TABLE public.tbl_notiz_typ ALTER COLUMN taglib TYPE varchar(255) USING taglib::varchar(255)'; + + if(!$db->db_query($qry)) + echo ' public.tbl_notiz_typ '.$db->db_last_error().'
'; + else + echo '
public.tbl_notiz_typ: Spalte taglib Datentyp zu varchar(255) geaendert.'; + } +} \ No newline at end of file