<?php
require __DIR__ . '/vendor/autoload.php';
$app = require_once __DIR__ . '/bootstrap/app.php';
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();

use Illuminate\Support\Facades\DB;

// Find the settings table
$tables = DB::select("SELECT table_name FROM information_schema.tables WHERE table_schema='public' AND table_name LIKE '%setting%'");
foreach ($tables as $t) {
    echo "TABLE: {$t->table_name}\n";
}

// Check instance settings
$rows = DB::select("SELECT * FROM instance_settings");
foreach ($rows as $r) {
    echo "{$r->key} = {$r->value}\n";
}
