Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mstaack/12491ed1ebfd4c5a43505dbaec331039 to your computer and use it in GitHub Desktop.
Save mstaack/12491ed1ebfd4c5a43505dbaec331039 to your computer and use it in GitHub Desktop.
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class FixNovaTableForMongo extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('action_events', function (Blueprint $table) {
$table->string('actionable_id')->change();
$table->string('target_id')->change();
$table->string('model_id')->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment