for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePolarNotificationsTable extends Migration
{
public function up()
Schema::create('polar_notifications', function (Blueprint $table) {
$table->bigIncrements('id');
$table->integer('user_id', false, true);
$table->string('from')->default('system');
$table->string('status', 10)->defaul('info');
$table->text('body');
$table->string('url')->nullable();
$table->json('extra');
$table->tinyInteger('read')->default(0);
$table->timestamps();
$table->index(['user_id', 'created_at']);
});
}
public function down()
Schema::dropIfExists('polar_notifications');