snipe-it/database/migrations/2013_11_16_040323_create_depreciations_table.php

35 lines
750 B
PHP
Raw Normal View History

2016-03-25 01:18:05 -07:00
<?php
use Illuminate\Database\Migrations\Migration;
class CreateDepreciationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('depreciations', function ($table) {
$table->increments('id');
$table->string('name');
$table->integer('months');
$table->timestamps();
$table->integer('user_id')->nullable();
$table->engine = 'InnoDB';
//$table->foreign('user_id')->references('id')->on('users');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('depreciations');
}
}