Added the improvements table migration to create the improvements table

This commit is contained in:
Vincent Sposato
2015-06-27 10:51:22 -04:00
parent 6cff270d3d
commit 255a492db6
2 changed files with 49 additions and 0 deletions
@@ -0,0 +1,44 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateImprovementsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create( 'improvements', function ( Blueprint $table ) {
$table->increments( 'id' );
$table->enum( 'improvement_type', [ 'Maintenance', 'Repair', 'Upgrade' ] );
$table->string( 'title', 100 );
$table->boolean( 'is_warranty' );
$table->dateTime( 'start_date' );
$table->dateTime( 'completion_date' );
$table->decimal( 'improvement_time', 8, 2 );
$table->longText( 'notes' );
$table->decimal( 'cost', 10, 2 );
$table->timestamps();
} );
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists( 'improvements' );
}
}
+5
View File
@@ -0,0 +1,5 @@
<?php
class Improvement {
}