Suppression de commentaires
This commit is contained in:
parent
65748d9114
commit
cf2218e1d6
14
upgrade.php
14
upgrade.php
|
@ -5,23 +5,9 @@ namespace Garradin;
|
||||||
$db = DB::getInstance();
|
$db = DB::getInstance();
|
||||||
$db->import(dirname(__FILE__) . "/data/schema.sql");
|
$db->import(dirname(__FILE__) . "/data/schema.sql");
|
||||||
|
|
||||||
# plugins_facturations_factures
|
|
||||||
# foreach(facture )
|
|
||||||
# $tmp = unserialize(désignations)
|
|
||||||
# $designation = json_encode($tmp)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// $r = (array) DB::getInstance()->get('SELECT *, strftime(\'%s\', date_emission) AS date_emission,
|
|
||||||
// strftime(\'%s\', date_echeance) AS date_echeance
|
|
||||||
// FROM plugin_facturation_factures');
|
|
||||||
|
|
||||||
$r = (array) DB::getInstance()->get('SELECT * FROM plugin_facturation_factures');
|
$r = (array) DB::getInstance()->get('SELECT * FROM plugin_facturation_factures');
|
||||||
|
|
||||||
foreach ($r as $e) {
|
foreach ($r as $e) {
|
||||||
$e->contenu =json_encode(unserialize((string) $e->contenu));
|
$e->contenu =json_encode(unserialize((string) $e->contenu));
|
||||||
$db->update('plugin_facturation_factures', $e, $db->where('id', (int)$e->id));
|
$db->update('plugin_facturation_factures', $e, $db->where('id', (int)$e->id));
|
||||||
}
|
}
|
||||||
|
|
||||||
// var_dump($db->update('plugin_facturation_factures', $r));
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue