Ekapp/skolehjem/database/migrations/2020_06_08_091617_create_fe...

36 lines
840 B
PHP
Raw Normal View History

<?php
//Migrations acts as a version control for the database allowing you to modify the app's database schema
//allows use of necessary libraries
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateFeedbacks extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('feedbacks', function (Blueprint $table) {
$table->id();
$table->string("message");
2020-06-29 11:30:13 +00:00
$table->string("suggestion_form"); //Skriver om det er Ris el. Ros
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('feedbacks');
}
}