1
0
Fork 0
pixelfed/database/migrations/2018_05_07_025743_create_no...

38 lines
955 B
PHP
Raw Normal View History

2018-05-26 22:58:22 +00:00
<?php
use Illuminate\Database\Migrations\Migration;
2018-08-28 03:07:36 +00:00
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2018-05-26 22:58:22 +00:00
class CreateNotificationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('notifications', function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('profile_id')->unsigned()->index();
$table->bigInteger('actor_id')->unsigned()->nullable();
$table->string('action')->nullable();
$table->string('message')->nullable();
$table->string('rendered')->nullable();
$table->timestamp('read_at')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('notifications');
}
}