From cf2218e1d6cce696806a4e258ed936d003ee5276 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sun, 22 Mar 2020 06:32:48 +0100 Subject: [PATCH] Suppression de commentaires --- upgrade.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/upgrade.php b/upgrade.php index 7754401..9aab031 100644 --- a/upgrade.php +++ b/upgrade.php @@ -5,23 +5,9 @@ namespace Garradin; $db = DB::getInstance(); $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'); foreach ($r as $e) { $e->contenu =json_encode(unserialize((string) $e->contenu)); $db->update('plugin_facturation_factures', $e, $db->where('id', (int)$e->id)); -} - -// var_dump($db->update('plugin_facturation_factures', $r)); - +} \ No newline at end of file