X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fplugins%2Fagenda_3_5%2Fagenda_administrations.php;fp=www%2Fplugins%2Fagenda_3_5%2Fagenda_administrations.php;h=2e02f7c854c80e0580d32f565a5e9ac922dc5770;hp=c40462a7c268f1fa76b34be00baea3b38c996650;hb=e9831187c8ec71fdae89f823e969d63fc3cbc7f3;hpb=f854641371bdfbaba8fbab6212853d9795ba8cc8 diff --git a/www/plugins/agenda_3_5/agenda_administrations.php b/www/plugins/agenda_3_5/agenda_administrations.php index c40462a..2e02f7c 100644 --- a/www/plugins/agenda_3_5/agenda_administrations.php +++ b/www/plugins/agenda_3_5/agenda_administrations.php @@ -68,9 +68,23 @@ function agenda_upgrade($nom_meta_base_version,$version_cible){ array('sql_drop_table',"spip_mots_evenements"), array('sql_alter',"TABLE spip_evenements ADD statut varchar(10) DEFAULT 0 NOT NULL"), ); + $maj['0.25.0'] = array( array('upgrade_evenements_statut_025'), ); + + $maj['0.26.0'] = array( + array('maj_tables',array('spip_evenements')), + array('sql_update',"spip_evenements", array('date_creation'=>'maj')), + ); + + $maj['0.27.0'] = array( + // modification de la cle primaire (id_evenement,id_auteur) : les participants peuvent ne pas être des auteurs + // ajout d'une clé primaire "neutre" auto-incrémentée + array('sql_alter','TABLE spip_evenements_participants DROP PRIMARY KEY'), + array('sql_alter','TABLE spip_evenements_participants ADD id_evenement_participant BIGINT(21) NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST'), + array('maj_tables',array('spip_evenements_participants')), + ); include_spip('base/upgrade'); maj_plugin($nom_meta_base_version, $version_cible, $maj);