2016-03-25 01:18:05 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
|
|
|
class CreateLicensesTable extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::create('licenses', function ($table) {
|
2021-06-10 13:15:52 -07:00
|
|
|
$table->increments('id');
|
|
|
|
$table->string('name');
|
|
|
|
$table->integer('model_id');
|
|
|
|
$table->text('serial');
|
|
|
|
$table->string('license_email');
|
|
|
|
$table->string('license_name');
|
|
|
|
$table->date('purchase_date')->nullable();
|
|
|
|
$table->decimal('purchase_cost', 8, 2)->nullable();
|
|
|
|
$table->string('order_number');
|
|
|
|
$table->integer('assigned_to');
|
|
|
|
$table->text('notes');
|
|
|
|
$table->integer('user_id')->nullable();
|
|
|
|
$table->timestamps();
|
|
|
|
$table->engine = 'InnoDB';
|
2016-03-25 01:18:05 -07:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::dropIfExists('licenses');
|
|
|
|
}
|
|
|
|
}
|