Browse Source

bis repetitia placet, le type de liaison doit être not null

svn/root/tags/v2.2.7
maieul@maieul.net 2 years ago
parent
commit
726f3033db
  1. 5
      a2a_administrations.php
  2. 2
      base/a2a.php
  3. 4
      paquet.xml

5
a2a_administrations.php

@ -24,6 +24,11 @@ function a2a_upgrade($nom_meta_base_version,$version_cible){
);
$maj['0.12.0'] = array(array('a2a_maj_0120'));
$maj['0.13.0'] = array(
array('sql_updateq',"spip_articles_lies",array('type_liaison'=>''),"type_liaison is null"),
array('sql_alter','TABLE spip_articles_lies CHANGE type_liaison type_liaison varchar(255) not null default "" ')
);
include_spip('base/upgrade');
maj_plugin($nom_meta_base_version, $version_cible, $maj);
}

2
base/a2a.php

@ -19,7 +19,7 @@ function a2a_declarer_tables_auxiliaires($tables_auxiliaires){
"id_article" => "bigint(21) NOT NULL",
"id_article_lie" => "bigint(21) NOT NULL",
"rang" => "bigint(21) NOT NULL DEFAULT '0'",
"type_liaison" => "varchar(25) DEFAULT ''",
"type_liaison" => "varchar(25) NOT NULL DEFAULT ''",
);
$spip_articles_lies_key = array(

4
paquet.xml

@ -1,11 +1,11 @@
<paquet
prefix="a2a"
categorie="navigation"
version="2.2.6"
version="2.2.7"
etat="stable"
compatibilite="[3.0.0;3.2.*]"
logo="images/a2a-64.png"
schema="0.12.0"
schema="0.13.0"
documentation="https://contrib.spip.net/Le-plugin-a2a-pour-lier-des-articles"
>

Loading…
Cancel
Save