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