FIX: remove on update current_timestamp from content column updated_at

This commit is contained in:
Michal Kváček
2016-09-26 15:29:49 +02:00
parent cd28625309
commit 02157f332e
@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;
class RemoveOnUpdateCurrentTimestampFromContentsUpdatedAt extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::statement('ALTER TABLE `contents`
CHANGE `updated_at` `updated_at` timestamp NULL AFTER `created_at`;');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
// do nothing
}
}