Notes table migration (create)

Notes table migration (create)
This commit is contained in:
cp6 2022-12-02 13:57:55 +11:00
parent 924415eb66
commit e77c402aba

View File

@ -0,0 +1,23 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up()
{
Schema::create('notes', function (Blueprint $table) {
$table->char('id', 8)->primary();
$table->char('service_id', 8)->unique();
$table->text('note');
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('notes');
}
};