Browse Source

Certains s’amusent à mettre des prefixes à rallonge. On augmente un peu la taille de ce champ.

svn/root/plugins/svp
Matthieu Marcillaud 10 months ago
parent
commit
7d60ab1b18
3 changed files with 9 additions and 4 deletions
  1. +2
    -2
      base/svp_declarer.php
  2. +2
    -2
      paquet.xml
  3. +5
    -0
      svp_administrations.php

+ 2
- 2
base/svp_declarer.php View File

@ -88,7 +88,7 @@ function svp_declarer_tables_objets_sql($tables) {
'type' => 'plugin',
'field' => array(
"id_plugin" => "bigint(21) NOT NULL",
"prefixe" => "varchar(30) DEFAULT '' NOT NULL",
"prefixe" => "varchar(48) DEFAULT '' NOT NULL",
"nom" => "text DEFAULT '' NOT NULL",
"slogan" => "text DEFAULT '' NOT NULL",
"vmax" => "varchar(24) DEFAULT '' NOT NULL", // version la plus elevee des paquets du plugin
@ -137,7 +137,7 @@ function svp_declarer_tables_objets_sql($tables) {
'field' => array(
"id_paquet" => "bigint(21) NOT NULL",
"id_plugin" => "bigint(21) NOT NULL",
"prefixe" => "varchar(30) DEFAULT '' NOT NULL",
"prefixe" => "varchar(48) DEFAULT '' NOT NULL",
"logo" => "varchar(255) DEFAULT '' NOT NULL",
// chemin du logo depuis la racine du plugin
"version" => "varchar(24) DEFAULT '' NOT NULL",


+ 2
- 2
paquet.xml View File

@ -1,11 +1,11 @@
<paquet
prefix="svp"
categorie="maintenance"
version="2.1.4"
version="2.2.0"
etat="stable"
compatibilite="[3.3.0-dev;3.3.*]"
logo="svp-64.png"
schema="0.6.0"
schema="0.6.1"
documentation="http://blog.smellup.net/spip.php?rubrique1"
>


+ 5
- 0
svp_administrations.php View File

@ -49,6 +49,11 @@ function svp_upgrade($nom_meta_base_version, $version_cible) {
array('sql_alter','TABLE spip_plugins DROP COLUMN tags'),
);
$maj['0.6.1'] = array(
array('sql_alter', "TABLE spip_plugins CHANGE prefixe prefixe VARCHAR(48) DEFAULT '' NOT NULL"),
array('sql_alter', "TABLE spip_paquets CHANGE prefixe prefixe VARCHAR(48) DEFAULT '' NOT NULL"),
);
include_spip('base/upgrade');
maj_plugin($nom_meta_base_version, $version_cible, $maj);
}


Loading…
Cancel
Save