I have been looking in the source of the BluePrint class. There is no method like "alterColumn" or "changeColumn" :(
someone told me I have to use raw queries:
public function up() {
DB::statement('ALTER TABLE `users` MODIFY COLUMN `password` VARCHAR(100)');
}
In Laravel 5.2 you can do something like this:
Schema::table('users', function ($table) { $table->string('name', 50)->change(); });
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community