2021-06-18 15:09:34 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
|
|
|
|
class UpdateUsers extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::table('users', function (Blueprint $table) {
|
2022-10-23 02:46:46 +00:00
|
|
|
$table->boolean('admin')->nullable();
|
2021-06-18 15:09:34 +00:00
|
|
|
$table->text('pgp_pubkey')->nullable();
|
|
|
|
$table->boolean('active')->default(TRUE);
|
|
|
|
$table->dateTime('last_on')->nullable();
|
2022-10-23 02:46:46 +00:00
|
|
|
$table->string('alias')->nullable();
|
2021-06-18 15:09:34 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::table('users', function (Blueprint $table) {
|
|
|
|
|
2022-10-23 02:46:46 +00:00
|
|
|
$table->dropColumn(['admin','pgp_pubkey','active','last_on']);
|
2021-06-18 15:09:34 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|