feat: xxbb

This commit is contained in:
hashbro
2026-08-13 06:30:07 +08:00
parent f285d35d86
commit c6e386e069
121 changed files with 4083 additions and 51 deletions
@@ -0,0 +1,24 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('channels', function (Blueprint $table) {
$table->string('builder_type', 16)->default('old')->after('channel_id');
$table->string('channel_name', 32)->nullable()->unique()->after('builder_type');
});
}
public function down(): void
{
Schema::table('channels', function (Blueprint $table) {
$table->dropUnique(['channel_name']);
$table->dropColumn(['builder_type', 'channel_name']);
});
}
};