You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

36 lines
830 B

<?php
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
/**
* Installation/maj du plugin rssarticle
*
* @param string $nom_meta_base_version
* @param string $version_cible
*/
function rssarticle_upgrade($nom_meta_base_version, $version_cible) {
$maj = array();
$maj['create'] = array(
array('maj_tables', array('spip_articles_syndic')),
array('sql_alter', 'TABLE spip_syndic ADD rssarticle varchar(3) DEFAULT "non" NOT NULL'),
);
include_spip('base/upgrade');
maj_plugin($nom_meta_base_version, $version_cible, $maj);
}
/**
* Desinstallation du plugin rssarticle
*
* @param string $nom_meta_base_version
*/
function rssarticle_vider_tables($nom_meta_base_version) {
sql_alter("TABLE spip_syndic DROP COLUMN rssarticle");
sql_drop_table('spip_articles_syndic');
effacer_meta($nom_meta_base_version);
}