Changeset 65419 in spip-zone


Ignore:
Timestamp:
Aug 31, 2012, 1:12:05 PM (8 years ago)
Author:
maieul@…
Message:

ne pas se tromper dans la clef primaire

Location:
_plugins_/a2a/branches/type
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/a2a/branches/type/a2a_administrations.php

    r65416 r65419  
    1818        $maj['0.7.0'] = array(array('a2a_maj_070'));
    1919        $maj['0.8.0'] = array(array('a2a_maj_080'));
     20        $maj['0.9.0'] = array(array('a2a_maj_090'));
    2021        include_spip('base/upgrade');
    2122        maj_plugin($nom_meta_base_version, $version_cible, $maj);
     
    4445       
    4546}       
    46 
     47function a2a_maj_090(){
     48        sql_alter("TABLE spip_articles_lies DROP PRIMARY KEY");
     49        sql_alter("TABLE spip_articles_lies ADD PRIMARY KEY (id_article,id_article_lie,type_liaison)");
     50}
    4751function a2a_vider_tables($nom_meta_base_version) {
    4852        sql_drop_table("spip_articles_lies");
  • _plugins_/a2a/branches/type/base/a2a.php

    r65416 r65419  
    2424       
    2525        $spip_articles_lies_key = array(
    26                 "PRIMARY KEY"           => "id_article, id_article_lie"
     26                "PRIMARY KEY"           => "id_article, id_article_lie,type_liaison"
    2727        );
    2828
  • _plugins_/a2a/branches/type/paquet.xml

    r65416 r65419  
    66        compatibilite="[3.0.0-dev;3.0.*]"
    77        logo="images/a2a-64.png"
    8         schema="0.8.0"
     8        schema="0.9.0"
    99        documentation="http://www.spip-contrib.net/a2a"
    1010>       
Note: See TracChangeset for help on using the changeset viewer.