Making sure MyISAM is set for the tables that need it for new installtions that are using mariadb.
Showing
3 changed files
with
3 additions
and
0 deletions
| ... | @@ -13,6 +13,7 @@ class CreateBooksTable extends Migration | ... | @@ -13,6 +13,7 @@ class CreateBooksTable extends Migration |
| 13 | public function up() | 13 | public function up() |
| 14 | { | 14 | { |
| 15 | Schema::create('books', function (Blueprint $table) { | 15 | Schema::create('books', function (Blueprint $table) { |
| 16 | + $table->engine = 'MyISAM'; | ||
| 16 | $table->increments('id'); | 17 | $table->increments('id'); |
| 17 | $table->string('name'); | 18 | $table->string('name'); |
| 18 | $table->string('slug')->indexed(); | 19 | $table->string('slug')->indexed(); | ... | ... |
| ... | @@ -13,6 +13,7 @@ class CreatePagesTable extends Migration | ... | @@ -13,6 +13,7 @@ class CreatePagesTable extends Migration |
| 13 | public function up() | 13 | public function up() |
| 14 | { | 14 | { |
| 15 | Schema::create('pages', function (Blueprint $table) { | 15 | Schema::create('pages', function (Blueprint $table) { |
| 16 | + $table->engine = 'MyISAM'; | ||
| 16 | $table->increments('id'); | 17 | $table->increments('id'); |
| 17 | $table->integer('book_id'); | 18 | $table->integer('book_id'); |
| 18 | $table->integer('chapter_id'); | 19 | $table->integer('chapter_id'); | ... | ... |
| ... | @@ -13,6 +13,7 @@ class CreateChaptersTable extends Migration | ... | @@ -13,6 +13,7 @@ class CreateChaptersTable extends Migration |
| 13 | public function up() | 13 | public function up() |
| 14 | { | 14 | { |
| 15 | Schema::create('chapters', function (Blueprint $table) { | 15 | Schema::create('chapters', function (Blueprint $table) { |
| 16 | + $table->engine = 'MyISAM'; | ||
| 16 | $table->increments('id'); | 17 | $table->increments('id'); |
| 17 | $table->integer('book_id'); | 18 | $table->integer('book_id'); |
| 18 | $table->string('slug')->indexed(); | 19 | $table->string('slug')->indexed(); | ... | ... |
-
Please register or sign in to post a comment