N
$table->dropIndex(['id'])
Первая:
public function up()Вторая:
{
Schema::create('playlists', function (Blueprint $table) {
$table->bigInteger('id')->unsigned();
$table->bigInteger('owner_id')->unsigned();
$table->string('artist', 300);
$table->string('title', 300);
$table->char('duration');
$table->boolean('has_downloadable')->default(false);
$table->index('owner_id');
$table->index('id');
$table->foreign('owner_id')
->references('id')
->on('profiles')
->onDelete('cascade');
});
}
Schema::table('playlists', function (Blueprint $table) {
$table->dropColumn('id');
$table->dropColumn('artist');
$table->dropColumn('title');
$table->dropColumn('duration');
$table->dropColumn('has_downloadable');
$table->dropIndex(['id']);
$table->json('playlists');
});