mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-27 14:39:49 -08:00
36 lines
686 B
PHP
36 lines
686 B
PHP
|
<?php
|
||
|
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
|
||
|
class CreateSettingsTable extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
//
|
||
|
Schema::create('settings', function ($table) {
|
||
|
$table->increments('id');
|
||
|
$table->string('option_name');
|
||
|
$table->string('option_value');
|
||
|
$table->timestamps();
|
||
|
$table->integer('user_id')->nullable();
|
||
|
$table->engine = 'InnoDB';
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::drop('settings');
|
||
|
}
|
||
|
|
||
|
}
|