User editing and creation by system admin
This commit is contained in:
42
database/migrations/2021_06_18_133000_update_users.php
Normal file
42
database/migrations/2021_06_18_133000_update_users.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?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) {
|
||||
$table->text('pgp_pubkey')->nullable();
|
||||
$table->boolean('active')->default(TRUE);
|
||||
$table->dateTime('last_on')->nullable();
|
||||
});
|
||||
|
||||
Schema::table('systems', function (Blueprint $table) {
|
||||
$table->dateTime('last_session')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->dropColumn(['pgp_pubkey','active','last_on']);
|
||||
});
|
||||
|
||||
Schema::table('systems', function (Blueprint $table) {
|
||||
$table->dropColumn(['last_session']);
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user