Skip to content

Commit 25aef70

Browse files
committed
Added migration stub for users table to 2FA data
1 parent fd9c152 commit 25aef70

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

migrations/migration.php

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
3+
use Illuminate\Database\Schema\Blueprint;
4+
use Illuminate\Database\Migrations\Migration;
5+
6+
class UpdateUsersTable extends Migration
7+
{
8+
/**
9+
* Run the migrations.
10+
*
11+
* @return void
12+
*/
13+
public function up()
14+
{
15+
Schema::table('users', function (Blueprint $table) {
16+
// Two-Factor Authentication Columns...
17+
$table->string('phone_country_code')->nullable();
18+
$table->string('phone_number')->nullable();
19+
$table->text('two_factor_options')->nullable();
20+
});
21+
}
22+
23+
/**
24+
* Reverse the migrations.
25+
*
26+
* @return void
27+
*/
28+
public function down()
29+
{
30+
Schema::table('users', function (Blueprint $table) {
31+
$table->dropColumn([
32+
'phone_country_code',
33+
'phone_number',
34+
'two_factor_options'
35+
]);
36+
});
37+
}
38+
}

0 commit comments

Comments
 (0)