mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-14 01:24:06 -08:00
37 lines
784 B
PHP
37 lines
784 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');
|
||
|
});
|
||
|
}
|
||
|
|
||
|
}
|