Making sure MyISAM is set for the tables that need it for new installtions that are using mariadb.

This commit is contained in:
robert 2016-05-25 23:52:43 +02:00
parent 9d3f329bc9
commit 4acf0c4ee0
3 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,7 @@ class CreateBooksTable extends Migration
public function up()
{
Schema::create('books', function (Blueprint $table) {
$table->engine = 'MyISAM';
$table->increments('id');
$table->string('name');
$table->string('slug')->indexed();

View File

@ -13,6 +13,7 @@ class CreatePagesTable extends Migration
public function up()
{
Schema::create('pages', function (Blueprint $table) {
$table->engine = 'MyISAM';
$table->increments('id');
$table->integer('book_id');
$table->integer('chapter_id');

View File

@ -13,6 +13,7 @@ class CreateChaptersTable extends Migration
public function up()
{
Schema::create('chapters', function (Blueprint $table) {
$table->engine = 'MyISAM';
$table->increments('id');
$table->integer('book_id');
$table->string('slug')->indexed();