mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
36 lines
751 B
PHP
36 lines
751 B
PHP
|
<?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');
|
||
|
}
|
||
|
|
||
|
}
|