Wykrywanie imienia i nazwiska kelnera oraz info czy sesja dostala sie do aplikacji
This commit is contained in:
14
scripts/migrate_guest_action_queue_operator.php
Normal file
14
scripts/migrate_guest_action_queue_operator.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../config/database.php';
|
||||
|
||||
$pdo = getAnalyticsPdo();
|
||||
|
||||
$columns = $pdo->query("SHOW COLUMNS FROM guest_action_queue LIKE 'otwierajacy_imie'")->fetch();
|
||||
if ($columns) {
|
||||
echo "Kolumny otwierajacy_* już istnieją.\n";
|
||||
exit(0);
|
||||
}
|
||||
|
||||
$sql = file_get_contents(__DIR__ . '/guest_action_queue_add_operator.sql');
|
||||
$pdo->exec($sql);
|
||||
echo "Dodano kolumny otwierajacy_imie i otwierajacy_nazwisko.\n";
|
||||
Reference in New Issue
Block a user