39 lines
653 B
PHP
39 lines
653 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class ChangeEngine extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
$tables = [
|
|
'm_t_o_s',
|
|
'weld_logs',
|
|
'naks_certificates'
|
|
];
|
|
|
|
foreach($tables AS $table) {
|
|
DB::statement("ALTER TABLE $table ENGINE = InnoDB");
|
|
}
|
|
|
|
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
//
|
|
}
|
|
}
|