mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-09-19 07:45:39 +00:00
09c2814dc7
- Added new DB column for control and role updated create/update actions. - Created new middleware as a start to actual enforcement logic. - Added indicator to role list of whether MFA is enforced.
33 lines
650 B
PHP
33 lines
650 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class AddMfaEnforcedToRolesTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::table('roles', function (Blueprint $table) {
|
|
$table->boolean('mfa_enforced');
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::table('roles', function (Blueprint $table) {
|
|
$table->dropColumn('mfa_enforced');
|
|
});
|
|
}
|
|
}
|