mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
37 lines
784 B
PHP
Executable file
37 lines
784 B
PHP
Executable file
<?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');
|
|
});
|
|
}
|
|
|
|
}
|