Exemple #1
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);
     }
 }
 function get_schema_original()
 {
     if ($this->ini->existe_entrada(self::schema_original)) {
         $schema = $this->ini->get_datos_entrada(self::schema_original);
     } else {
         $schema = $this->get_schema_instalacion();
         if (is_null($schema)) {
             $schema = $this->db->get_schema();
             //Fallback en el actual de la bd
         }
     }
     return $schema;
 }
Exemple #3
0
 function get_schema_log_toba()
 {
     return $this->db->get_schema() . '_logs';
 }