Changeset 1453


Ignore:
Timestamp:
Sep 27, 2010, 2:26:19 AM (10 years ago)
Author:
teymour
Message:

Uniq md5 filter+query

Location:
cpc/trunk/project
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/config/doctrine/schema.yml

    r1449 r1453  
    662662    query: string
    663663    filter: string
     664    query_md5: string(32)
    664665    titre: string
    665666    confirmed: boolean
     
    677678  indexes:
    678679    index_uniq:
    679       fields: [email, citoyen_id, query, filter]
     680      fields: [email, citoyen_id, query_md5]
    680681      type: unique
    681682   
  • cpc/trunk/project/lib/model/doctrine/Alerte.class.php

    r1441 r1453  
    3838    if ($this->citoyen_id)
    3939      $this->confirmed = 1;
     40    $this->query_md5 = md5($this->query.$this->filter);
    4041    return parent::save($c);
    4142  }
Note: See TracChangeset for help on using the changeset viewer.