Skip to content

Instantly share code, notes, and snippets.

@EricMcWinNer
Created November 29, 2021 12:22
Show Gist options
  • Save EricMcWinNer/2cb156cb7a65d1c1bd075b0d84650bfb to your computer and use it in GitHub Desktop.
Save EricMcWinNer/2cb156cb7a65d1c1bd075b0d84650bfb to your computer and use it in GitHub Desktop.
Explains how to change the engine in a Laravel migration
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->engine = "InnoDB";
// Rest of your migration
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment