Ignore:
Timestamp:
Apr 4, 2013, 9:32:56 AM (8 years ago)
Author:
cyril@…
Message:

Ajout de la table des lignes de factures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/factures/trunk/factures_administrations.php

    r71538 r71553  
    2525        $maj = array();
    2626
    27         $maj['create'] = array(array('maj_tables', array('spip_factures')));
     27        $maj['create'] = array(array('maj_tables', array('spip_factures', 'spip_lignes_factures')));
    2828
    2929        include_spip('base/upgrade');
     
    4242
    4343        sql_drop_table("spip_factures");
     44        sql_drop_table("spip_lignes_factures");
    4445
    4546        # Nettoyer les versionnages et forums
    46         sql_delete("spip_versions",              sql_in("objet", array('facture')));
    47         sql_delete("spip_versions_fragments",    sql_in("objet", array('facture')));
    48         sql_delete("spip_forum",                 sql_in("objet", array('facture')));
     47        sql_delete("spip_versions",              sql_in("objet", array('facture', 'ligne')));
     48        sql_delete("spip_versions_fragments",    sql_in("objet", array('facture', 'ligne')));
     49        sql_delete("spip_forum",                 sql_in("objet", array('facture', 'ligne')));
    4950
    5051        effacer_meta($nom_meta_base_version);
Note: See TracChangeset for help on using the changeset viewer.