Files

32 lines
733 B
PHP
Raw Permalink Normal View History

2016-09-05 12:00:56 -04:00
<?php
2024-10-21 19:18:20 -06:00
use Illuminate\Support\Facades\Schema;
2016-09-05 12:00:56 -04:00
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateNotificationsTable extends Migration
{
/**
* Run the migrations.
*/
2024-10-21 19:18:20 -06:00
public function up(): void
2016-09-05 12:00:56 -04:00
{
Schema::create('notifications', function (Blueprint $table) {
$table->string('id')->primary();
$table->string('type');
$table->morphs('notifiable');
$table->text('data');
$table->timestamp('read_at')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
2024-10-21 19:18:20 -06:00
public function down(): void
2016-09-05 12:00:56 -04:00
{
Schema::drop('notifications');
}
}