feat: xxbb
This commit is contained in:
+24
@@ -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']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user