Files
crater/database/migrations/2020_10_17_074745_create_notes_table.php
Mohit Panjwani 89ee58590c build version 400
2020-12-02 17:54:08 +05:30

35 lines
681 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateNotesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('notes', function (Blueprint $table) {
$table->id();
$table->string('type');
$table->string('name');
$table->text('notes');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('notes');
}
}