function migrar_estructura_campos_toba_2_4()
 {
     foreach ($this->tablas as $t) {
         $nombre = $this->prefijo . $t;
         if ($this->conexion->existe_tabla($this->schema_logs, $nombre)) {
             $sql = "ALTER TABLE {$this->schema_logs}.{$nombre} ALTER auditoria_usuario TYPE character varying(60);";
             $this->conexion->ejecutar($sql);
         }
     }
 }
Пример #2
0
 function analizar_conflictos()
 {
     $this->conflictos = array();
     $schema = $this->db->get_schema();
     if (!$this->db->existe_tabla($schema, $this->tabla)) {
         $this->conflictos[] = new toba_registro_conflicto_tabla_inexistente($this);
     }
     $error = $this->check_constraints();
     if ($error !== false) {
         $this->conflictos[] = new toba_registro_conflicto_constraints($this, $error);
     }
 }