Auth, models, controllers and migrations scaffolding
This commit is contained in:
36
database/migrations/2021_09_04_192641_create_beers_table.php
Normal file
36
database/migrations/2021_09_04_192641_create_beers_table.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateBeersTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('beers', function (Blueprint $table) {
|
||||
$table->unsignedBigInteger('id');
|
||||
$table->string('beer');
|
||||
$table->integer('rating');
|
||||
$table->string('country');
|
||||
$table->string('type');
|
||||
$table->string('review')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('beers');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user