snipe-it/database/migrations/2017_07_07_191533_add_login_text.php

33 lines
662 B
PHP
Raw Normal View History

2017-07-07 19:54:10 -07:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2017-07-07 19:54:10 -07:00
class AddLoginText extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('settings', function (Blueprint $table) {
$table->text('login_note')->nullable()->default(null);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('settings', function (Blueprint $table) {
$table->dropColumn('login_note');
});
}
}