Alcuni comandi mysql per cercare tutti gli eventi di un calendario o i calendari di un proprietario su Horde DB
Cercare datatree_id del calendario in from horde_datatree_attributes
select * from horde_datatree_attributes where attribute_value='Udienze'
O per proprietario
select * from horde_datatree_attributes where attribute_value='marfav';
Trovato il datatree_id = 46 Lo cerchiamo in horde_datatree
select * from horde_datatree where datatree_id='46';
Prendiamo il datatree_name nel nostro caso b75aa2ee783985b259e9f64e7117854c
Lo cerchiamo in kronolith_events come calendar_id
select * from kronolith_events where calendar_id='b75aa2ee783985b259e9f64e7117854c';
Possiamo anche vedere le azioni su quel calendario in questo modo
select count(*) from horde_histories where object_uid like 'kronolith:b75aa2ee783985b259e9f64e7117854c%' and history_action='delete';
Anche con il timestamp tradotto in data/ora
select history_id,object_uid,history_action,history_who,FROM_UNIXTIME(history_ts) from horde_histories where object_uid like 'kronolith:b75aa2ee783985b259e9f64e7117854c%' order by history_ts;