mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
38 lines
955 B
PHP
38 lines
955 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
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');
|
|
}
|
|
}
|