Car registration work
This commit is contained in:
@ -15,11 +15,12 @@ class CreateVehiclesTable extends Migration
|
||||
{
|
||||
Schema::create('vehicles', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('year');
|
||||
$table->year('year');
|
||||
$table->string('make');
|
||||
$table->string('model');
|
||||
$table->string('type');
|
||||
$table->boolean('doNotJudge');
|
||||
$table->integer('owner');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
32
database/migrations/2019_02_13_162647_create_types_table.php
Normal file
32
database/migrations/2019_02_13_162647_create_types_table.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateTypesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('types', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('type_name');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('types');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user