/** * Crea le tabelle se non esistono (backup se l'SQL non funziona) */ private function checkAndCreateTables() { $db = JFactory::getDbo(); // Tabella spedizioni $tableName = $db->quoteName('#__hikashop_packlink_shipments'); $db->setQuery("SHOW TABLES LIKE " . $db->quote($db->replacePrefix('#__hikashop_packlink_shipments'))); $exists = $db->loadResult(); if (!$exists) { $query = "CREATE TABLE IF NOT EXISTS $tableName ( id INT(11) NOT NULL AUTO_INCREMENT, order_id INT(11) NOT NULL, shipment_id VARCHAR(100) NOT NULL, warehouse_id INT(11) NOT NULL, service_name VARCHAR(255) DEFAULT NULL, status VARCHAR(50) DEFAULT 'created', created DATETIME NOT NULL, modified DATETIME DEFAULT NULL, PRIMARY KEY (id), KEY idx_order_id (order_id), KEY idx_shipment_id (shipment_id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;"; $db->setQuery($query); $db->execute(); } // Tabella cache $tableName = $db->quoteName('#__hikashop_packlink_cache'); $db->setQuery("SHOW TABLES LIKE " . $db->quote($db->replacePrefix('#__hikashop_packlink_cache'))); $exists = $db->loadResult(); if (!$exists) { $query = "CREATE TABLE IF NOT EXISTS $tableName ( id INT(11) NOT NULL AUTO_INCREMENT, cache_key VARCHAR(255) NOT NULL, cache_data TEXT NOT NULL, created DATETIME NOT NULL, expires DATETIME NOT NULL, PRIMARY KEY (id), UNIQUE KEY idx_cache_key (cache_key) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;"; $db->setQuery($query); $db->execute(); } } /** * Chiama la creazione tabelle all'inizializzazione */ public function onAfterInitialise() { $this->checkAndCreateTables(); }
Pastificio Minardo steht für Qualität und Tradition und bietet Premium-Pasta, die perfekt für den HoreCa-Sektor geeignet ist. Die handwerkliche Verarbeitung und die ausgewählten Zutaten garantieren Gerichte mit authentischem Geschmack, ideal für Restaurants, Hotels und Catering.
Sizilianische Rohstoffe – Lokale Maserungen und Bronzezeichnung für eine perfekte Textur.
Vielseitigkeit in der Küche – Klassische und innovative Formate für raffinierte Menüs.
Zuverlässigkeit für Köche – Stabiles Produkt und für hohe Leistungen geeignet.
Wählen Sie Pastificio Minardo, um die Essenz Siziliens auf den Tisch zu bringen, mit einer Pasta, die den Unterschied macht.

Um diese Web-App auf Ihrem iPhone/iPad zu installieren, drücken Sie das Symbol.
Und dann Zum Startbildschirm hinzufügen.
