snipe-it/database/migrations/2018_06_21_134622_add_version_footer.php
2018-06-21 07:12:16 -07:00

30 lines
674 B
PHP
Executable file

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddVersionFooter extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('settings', function (Blueprint $table) {
$table->char('version_footer', 5)->nullable()->default('on');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('settings', function (Blueprint $table) {
$table->dropColumn('version_footer');
});
}
}