From 4acf0c4ee061c5db0f80573f0931dfa0760df9c9 Mon Sep 17 00:00:00 2001 From: robert Date: Wed, 25 May 2016 23:52:43 +0200 Subject: [PATCH] Making sure MyISAM is set for the tables that need it for new installtions that are using mariadb. --- database/migrations/2015_07_12_114933_create_books_table.php | 1 + database/migrations/2015_07_12_190027_create_pages_table.php | 1 + database/migrations/2015_07_27_172342_create_chapters_table.php | 1 + 3 files changed, 3 insertions(+) diff --git a/database/migrations/2015_07_12_114933_create_books_table.php b/database/migrations/2015_07_12_114933_create_books_table.php index 51fb55c48..121607f6a 100644 --- a/database/migrations/2015_07_12_114933_create_books_table.php +++ b/database/migrations/2015_07_12_114933_create_books_table.php @@ -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(); diff --git a/database/migrations/2015_07_12_190027_create_pages_table.php b/database/migrations/2015_07_12_190027_create_pages_table.php index b3b2b9244..5e6e7e812 100644 --- a/database/migrations/2015_07_12_190027_create_pages_table.php +++ b/database/migrations/2015_07_12_190027_create_pages_table.php @@ -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'); diff --git a/database/migrations/2015_07_27_172342_create_chapters_table.php b/database/migrations/2015_07_27_172342_create_chapters_table.php index 7974759f2..74594121f 100644 --- a/database/migrations/2015_07_27_172342_create_chapters_table.php +++ b/database/migrations/2015_07_27_172342_create_chapters_table.php @@ -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();