Commit 41b7657c authored by Mahmoud Aglan's avatar Mahmoud Aglan

Fix varchar(10) overflow on training_groups.code column

Generated codes like TEAM2001-10 exceed 10 chars when there are 10+ duplicate
program names within an academy. Widen to varchar(20).
Co-Authored-By: 's avatarClaude Sonnet 4.6 <noreply@anthropic.com>
parent fe016b49
<?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('training_groups', function (Blueprint $table) {
$table->string('code', 20)->change();
});
}
public function down(): void
{
Schema::table('training_groups', function (Blueprint $table) {
$table->string('code', 10)->change();
});
}
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment