Ort Bezeichnung auf 64 Zeichen verlängert

This commit is contained in:
Andreas Österreicher
2010-08-19 08:35:57 +00:00
parent 28780620d9
commit 19678b0a11
2 changed files with 17 additions and 2 deletions
+2 -2
View File
@@ -41886,7 +41886,7 @@
<Company>Technikum Wien</Company>
<Version>2.0</Version>
<CreatedDate>2009-04-17T11:15:21.000+02:00</CreatedDate>
<ModifiedDate>2010-07-01T10:42:33.517+02:00</ModifiedDate>
<ModifiedDate>2010-08-19T10:35:26.666+02:00</ModifiedDate>
<Project>FH-Complete 2.0</Project>
<Description></Description>
</ModelTitlePG83>
@@ -94783,7 +94783,7 @@ ALTER TABLE tbl_mitarbeiter ALTER COLUMN personalnummer DROP NOT NULL;</Comments
<AfterScript></AfterScript>
<Notes></Notes>
<Comments></Comments>
<DataTypeParam1>30</DataTypeParam1>
<DataTypeParam1>64</DataTypeParam1>
<DataTypeParam2></DataTypeParam2>
<KeepForeignKey>0</KeepForeignKey>
<DefaultValue></DefaultValue>
+15
View File
@@ -1067,6 +1067,21 @@ if(!@$db->db_query('SELECT lv_bezeichnung_english FROM campus.vw_lehreinheit LIM
echo 'campus.vw_lehreinheit: Spalte lv_bezeichunng_english hinzugefuegt<br>';
}
//Ort bezeichnung von 30 auf 64 Zeichen verlaengern
if($result = $db->db_query("SELECT character_maximum_length FROM information_schema.columns WHERE column_name='bezeichnung' AND table_name='tbl_ort' AND table_schema='public';"))
{
if($row = $db->db_fetch_object($result))
{
if($row->character_maximum_length==30)
{
$qry = "ALTER TABLE public.tbl_ort ALTER COLUMN bezeichnung TYPE varchar(64);";
if(!$db->db_query($qry))
echo '<strong>public.tbl_ort: '.$db->db_last_error().'</strong><br>';
else
echo 'public.tbl_ort: Spalte bezeichnung auf 64 Zeichen verlaengert<br>';
}
}
}
echo '<br>';
$tabellen=array(