Ver código fonte

fix struct do historii

Arkadiusz Binder 4 meses atrás
pai
commit
2b7d6dc123
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      SE/se-lib/Core/Database/Mysql.php

+ 1 - 1
SE/se-lib/Core/Database/Mysql.php

@@ -1346,7 +1346,7 @@ class Core_Database_Mysql extends Core_Database {
 					    $result_=self::query($sql_) or die1(' Problem ze sql '.$sql_);
 						while($h_=self::fetch($result_)) {
 							DEBUG_S(-3,'dane z tabeli',$h_,__FILE__,__FUNCTION__,__LINE__);
-							 $sql="\n alter ignore table `".$h[0]."_HIST` add ".$h_->Field." varchar(255) default 'N/S;'  ; " ;
+							 $sql="\n alter ignore table `".$h[0]."_HIST` add `".$h_->Field."` varchar(255) default 'N/S;'  ; " ;
 							 self::query($sql) or DEBUG_S(-3,' Problem ze sql '.$sql,array($sql),__FILE__,__FUNCTION__,__LINE__);
 
 						}