File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments