silent-auction/database/migrations/2019_02_16_085927_create_judges_table.php

33 lines
633 B
PHP
Raw Normal View History

2019-02-13 16:36:47 -05:00
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
2019-07-11 20:55:45 -04:00
class CreateJudgesTable extends Migration
2019-02-13 16:36:47 -05:00
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
2019-07-11 20:55:45 -04:00
Schema::create('judges', function (Blueprint $table) {
2019-02-13 16:36:47 -05:00
$table->increments('id');
2019-07-11 20:55:45 -04:00
$table->string('judge_number');
2019-02-13 16:36:47 -05:00
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
2019-07-11 20:55:45 -04:00
Schema::dropIfExists('judges');
2019-02-13 16:36:47 -05:00
}
}