Level 20
Have you add doctrine/dbal dependency to your composer.json file? From documentation it is said "Before modifying a column, be sure to add the doctrine/dbal dependency to your composer.json file...."
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Ok so I'm trying to modify a column type in my database from a bigInteger to a string, when I run the migration I keep getting an error message saying that there is no column named sku when I can clearly see it is there?!?
Schema::create('products', function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('sku');
$table->timestamps();
});
Schema::table('products', function (Blueprint $table) {
$table->string('sku')->change();
});
There is no column with name 'sku' on table 'products'.
Please or to participate in this conversation.