Merci pour ta réponse.
Si, par exemple, je veux supprimer les révisions qui ont plus d’un an sur l’article 6 ci-dessous...
spip_versions
|id_objet|objet|id_version|date|id_auteur|titre_version|permanent|champs|
|6|article|1|2009-05-18 17:20:53|90.24.224.168|Version initiale|oui|a:2:{s:5:"titre";s:1:"1";s:5:"texte";s:13:"2 3 4 5...|
|6|article|2|2010-03-16 09:27:22|32||non|a:2:{s:5:"titre";s:1:"1";s:5:"texte";s:24:"2 3 4 5...|
|6|article|3|2010-03-16 12:38:00|32||non|a:2:{s:5:"titre";s:1:"1";s:5:"texte";s:24:"2 3 4 5...|
|6|article|4|2010-11-08 12:28:24|2||non|a:1:{s:5:"texte";s:26:"1 2 3 4 5 6 7 8 9 10 11 12"...|
|6|article|5|2010-11-23 16:27:28|605||non|a:1:{s:5:"texte";s:26:"1 2 3 4 5 6 7 8 9 10 11 12"...|
|6|article|6|2010-11-26 09:54:52|605||non|a:1:{s:5:"texte";s:26:"1 2 3 4 5 6 7 8 9 10 11 12"...|
|6|article|7|2011-08-26 14:28:33|605||non|a:1:{s:5:"texte";s:26:"1 2 3 4 5 6 7 8 9 10 11 12"...|
|6|article|8|2012-03-08 09:12:32|2||non|a:1:{s:5:"texte";s:26:"1 2 3 4 5 6 7 8 9 10 11 12"...|
|6|article|9|2014-11-24 16:08:28|2||non|a:1:{s:5:"texte";s:32:"1 2 3 4 5 6 7 13 8 14 9 10 ...|
|6|article|10|2015-02-02 12:12:18|31||non|a:1:{s:5:"texte";s:32:"1 2 3 4 5 6 7 13 8 14 9 10 ...|
|6|article|11|2015-05-11 15:50:32|2||non|a:1:{s:11:"id_rubrique";s:1:"9";}|
spip_versions_fragments
|id_fragment|version_min|version_max|id_objet|objet|compress|fragment|
|1|1|10|6|article|1|[BLOB - 101o]|
|2|1|10|6|article|1|[BLOB - 165o]|
|3|1|10|6|article|1|[BLOB - 55o]|
|4|1|10|6|article|1|[BLOB - 132o]|
|5|1|10|6|article|1|[BLOB - 400o]|
|6|1|10|6|article|1|[BLOB - 59o]|
|7|1|10|6|article|1|[BLOB - 723o]|
|8|1|10|6|article|1|[BLOB - 684o]|
|9|2|11|6|article|1|[BLOB - 69o]|
|10|2|10|6|article|1|[BLOB - 730o]|
|11|2|10|6|article|1|[BLOB - 59o]|
|12|2|10|6|article|1|[BLOB - 166o]|
|13|9|10|6|article|1|[BLOB - 426o]|
|14|9|10|6|article|0|[BLOB - 121o]|
Il faudrait que je supprime les versions de 1 à 8 dans la table spip_versions.
Et dans la table spip_versions_fragments, je garde tout parce que la version_max n’est jamais en dessous de 8 ?
Merci ! J’ai essayé de chercher dans l’aide de SPIP, mais je n’ai rien trouvé !
Bonne journée.