12 lines
472 B
PHP
12 lines
472 B
PHP
<?php
|
|
require __DIR__ . '/../vendor/autoload.php';
|
|
$app = require __DIR__ . '/../bootstrap/app.php';
|
|
$app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();
|
|
|
|
$rows = \Illuminate\Support\Facades\DB::select("SHOW FULL COLUMNS FROM artwork_comments");
|
|
foreach ($rows as $r) {
|
|
if (in_array($r->Field, ['content', 'raw_content', 'rendered_content'])) {
|
|
echo $r->Field . ' => type=' . $r->Type . ' collation=' . ($r->Collation ?? 'NULL') . PHP_EOL;
|
|
}
|
|
}
|