Ajout table pour enregistrer les pdfs associés aux messages
This commit is contained in:
parent
ef743b1b86
commit
5ec8ad9ca6
3 changed files with 22 additions and 5 deletions
|
@ -74,5 +74,21 @@ function gamumail_declarer_tables_objets_sql($tables) {
|
||||||
'texte_changer_statut' => 'gamumail:texte_changer_statut_gamumail',
|
'texte_changer_statut' => 'gamumail:texte_changer_statut_gamumail',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$tables['spip_gamumail_pdfs'] = array(
|
||||||
|
'type' => 'gamumail_pdf',
|
||||||
|
'principale' => 'oui',
|
||||||
|
'field'=> array(
|
||||||
|
'id_gamumail_pdf' => 'bigint(21) NOT NULL',
|
||||||
|
'id_gamumail' => 'bigint(21) NOT NULL',
|
||||||
|
'pdf' => 'varchar(255) NOT NULL DEFAULT ""',
|
||||||
|
'args' => 'varchar(255) NOT NULL DEFAULT ""',
|
||||||
|
'maj' => 'TIMESTAMP'
|
||||||
|
),
|
||||||
|
'key' => array(
|
||||||
|
'PRIMARY KEY' => 'id_gamumail_pdf',
|
||||||
|
'KEY id_gamumail' => 'id_gamumail',
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
return $tables;
|
return $tables;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,8 +26,8 @@ if (!defined('_ECRIRE_INC_VERSION')) {
|
||||||
function gamumail_upgrade($nom_meta_base_version, $version_cible) {
|
function gamumail_upgrade($nom_meta_base_version, $version_cible) {
|
||||||
$maj = array();
|
$maj = array();
|
||||||
|
|
||||||
$maj['create'] = array(array('maj_tables', array('spip_gamumails')));
|
$maj['create'] = array(array('maj_tables', array('spip_gamumails', 'spip_gamumail_pdfs')));
|
||||||
$maj['1.0.1'] = array(array('maj_tables', array('spip_gamumails')));
|
$maj['1.0.2'] = array(array('maj_tables', array('spip_gamumails', 'spip_gamumail_pdfs')));
|
||||||
|
|
||||||
include_spip('base/upgrade');
|
include_spip('base/upgrade');
|
||||||
maj_plugin($nom_meta_base_version, $version_cible, $maj);
|
maj_plugin($nom_meta_base_version, $version_cible, $maj);
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<paquet
|
<paquet
|
||||||
prefix="gamumail"
|
prefix="gamumail"
|
||||||
categorie="communication"
|
categorie="communication"
|
||||||
version="1.0.1"
|
version="1.0.2"
|
||||||
etat="dev"
|
etat="dev"
|
||||||
compatibilite="[3.3.0-dev;3.3.*]"
|
compatibilite="[3.3.0-dev;3.3.*]"
|
||||||
logo="prive/themes/spip/images/gamumail-64.png"
|
logo="prive/themes/spip/images/gamumail-64.png"
|
||||||
documentation=""
|
documentation=""
|
||||||
schema="1.0.1"
|
schema="1.0.2"
|
||||||
>
|
>
|
||||||
<!--
|
<!--
|
||||||
Paquet généré le 2020-04-24 20:56:15
|
Paquet généré le 2020-04-24 20:56:15
|
||||||
|
@ -18,7 +18,8 @@
|
||||||
<auteur lien='https://gamuza.fr'>tofulm</auteur>
|
<auteur lien='https://gamuza.fr'>tofulm</auteur>
|
||||||
|
|
||||||
<licence>GNU/GPL</licence>
|
<licence>GNU/GPL</licence>
|
||||||
<necessite nom="saisies" compatibilite="[3.23.2;]" />
|
|
||||||
|
<necessite nom="bigform" compatibilite="[1.0.0;[" />
|
||||||
|
|
||||||
|
|
||||||
<pipeline nom="autoriser" inclure="gamumail_autorisations.php" />
|
<pipeline nom="autoriser" inclure="gamumail_autorisations.php" />
|
||||||
|
|
Loading…
Add table
Reference in a new issue