Zmiana migracji laravel długość kolumny
Schema::table('users', function ($table) {
$table->string('name', 50)->change();
});
Clever Cicada
Schema::table('users', function ($table) {
$table->string('name', 50)->change();
});
public function up()
{
Schema::table('sometable', function (Blueprint $table) {
$table->text('text')->change();
});
}
public function changeColumnType($table, $column, $newColumnType) {
DB::statement("ALTER TABLE $table CHANGE $column $column $newColumnType");
}