34 lines
1.1 KiB
PHP
34 lines
1.1 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
/**
|
|
* v2.3 summary columns: engine + config identity on bands (grouping and
|
|
* display), generated-tok/s on scenariobench suite rows.
|
|
*/
|
|
public function up(): void
|
|
{
|
|
Schema::table('session_summaries', function (Blueprint $table) {
|
|
$table->string('engine', 64)->nullable()->after('gpu_count');
|
|
$table->string('config_name', 128)->nullable()->after('engine');
|
|
});
|
|
|
|
Schema::table('session_suite_rows', function (Blueprint $table) {
|
|
$table->double('gen_tps')->nullable()->after('weighted_user_tps');
|
|
});
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
Schema::table('session_suite_rows', function (Blueprint $table) {
|
|
$table->dropColumn('gen_tps');
|
|
});
|
|
Schema::table('session_summaries', function (Blueprint $table) {
|
|
$table->dropColumn(['engine', 'config_name']);
|
|
});
|
|
}
|
|
};
|