mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-15 18:14:09 -08:00
36 lines
783 B
PHP
36 lines
783 B
PHP
|
<?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');
|
||
|
});
|
||
|
}
|
||
|
}
|