From 542f3035a2032b31d6218ef0120e831927ff3725 Mon Sep 17 00:00:00 2001 From: Dasc3er Date: Thu, 24 Sep 2020 11:15:18 +0200 Subject: [PATCH] Correzione minore su namespace in aggiornamento --- update/api.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/update/api.php b/update/api.php index ee08e6e6c..37496fb95 100755 --- a/update/api.php +++ b/update/api.php @@ -4,6 +4,8 @@ * Creazione dei campi per l'API (created_at e updated_at) */ +use API\Response; + // I record precedenti vengono impostati a NULL $tables = include __DIR__.'/tables.php'; @@ -16,7 +18,7 @@ foreach ($tables as $table) { $database->query('ALTER TABLE `'.$table.'` ADD `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP'); } - if (API\Response::isCompatible()) { + if (Response::isCompatible()) { $updated_at = $database->fetchArray(str_replace('|field|', 'updated_at', $query)); if (empty($updated_at)) { $database->query('ALTER TABLE `'.$table.'` ADD `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP');