28 lines
961 B
Markdown
28 lines
961 B
Markdown
|
|
# Fix: tabella `google_o_auth_connections` mancante
|
||
|
|
|
||
|
|
## Problema
|
||
|
|
|
||
|
|
Migration `2026_06_15_000001_create_google_oauth_connections_table.php` segnata come "Ran" (batch 39) ma tabella fisica inesistente sul database MySQL/MariaDB. Causa 500 su GET `/impostazioni`.
|
||
|
|
|
||
|
|
## Comandi (eseguire sul server `192.168.222.177`)
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# 1. Creare la tabella mancante con la stessa definizione della migration
|
||
|
|
php artisan tinker --execute="
|
||
|
|
Schema::create('google_o_auth_connections', function (\Illuminate\Database\Schema\Blueprint \$table) {
|
||
|
|
\$table->id();
|
||
|
|
\$table->string('service', 20)->unique();
|
||
|
|
\$table->string('client_id', 255);
|
||
|
|
\$table->text('client_secret');
|
||
|
|
\$table->text('refresh_token');
|
||
|
|
\$table->timestamps();
|
||
|
|
});
|
||
|
|
"
|
||
|
|
|
||
|
|
# 2. Pulire la cache delle viste (stale compiled view)
|
||
|
|
php artisan view:clear
|
||
|
|
|
||
|
|
# 3. Verificare che la tabella esista
|
||
|
|
php artisan tinker --execute="echo Schema::hasTable('google_o_auth_connections') ? 'OK' : 'ERRORE';"
|
||
|
|
```
|