for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSnapshotsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('snapshots', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('aggregate_root_id', 36)->index();
$table->integer('aggregate_root_version', false, true);
$table->jsonb('state');
$table->dateTime('recorded_at', 6)->index();
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('snapshots');