From 4b435a3b1f1256aff158288e6487987b6aab1125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Mon, 8 Aug 2011 08:15:03 +0000 Subject: [PATCH] =?UTF-8?q?tbl=5Fcontentgruppe.gruppe=5Fkurzbz=20Feldgr?= =?UTF-8?q?=C3=B6=C3=9Fe=20korrigiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/checksystem.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/system/checksystem.php b/system/checksystem.php index 658e36d08..af226a1f8 100644 --- a/system/checksystem.php +++ b/system/checksystem.php @@ -2575,6 +2575,23 @@ if(!$result = @$db->db_query('SELECT content_id FROM campus.tbl_news LIMIT 1;')) echo 'campus.tbl_news: Spalte content_id hinzugefuegt, tbl_newssprache entfernt, div. Indizes hinzugefuegt!
'; } +//tbl_contentgruppe.gruppe_kurzbz auf 32 Zeichen verlaengern +if($result = @$db->db_query("SELECT character_maximum_length as len FROM information_schema.columns WHERE column_name='gruppe_kurzbz' AND table_name='tbl_contentgruppe' AND table_schema='campus';")) +{ + if($row = $db->db_fetch_object($result)) + { + if($row->len=='16') + { + $qry = "ALTER TABLE campus.tbl_contentgruppe ALTER COLUMN gruppe_kurzbz TYPE varchar(32);"; + + if(!$db->db_query($qry)) + echo 'campus.tbl_contentgruppe: '.$db->db_last_error().'
'; + else + echo 'campus.tbl_contentgruppe: Spalte gruppe_kurzbz auf 32 Zeichen verlaengert!
'; + } + } +} + echo '
';