snipe-it/database/migrations/2013_03_23_193214_update_users_table.php

36 lines
783 B
PHP
Raw Normal View History

2016-03-25 01:18:05 -07:00
<?php
use Illuminate\Database\Migrations\Migration;
class UpdateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
// Update the users table
Schema::table('users', function ($table) {
$table->softDeletes();
$table->string('website')->nullable();
$table->string('country')->nullable();
$table->string('gravatar')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
// Update the users table
Schema::table('users', function ($table) {
$table->dropColumn('deleted_at', 'website', 'country', 'gravatar');
});
}
}