@@ -9,22 +9,22 @@ discard block |
||
| 9 | 9 | { |
| 10 | 10 | public function up(): void |
| 11 | 11 | { |
| 12 | - //Action when migrate up |
|
| 12 | + //Action when migrate up |
|
| 13 | 13 | $this->create('tokens', function (CreateTable $table) { |
| 14 | 14 | $table->integer('id') |
| 15 | 15 | ->autoincrement() |
| 16 | 16 | ->primary(); |
| 17 | 17 | |
| 18 | 18 | $table->string('refresh_token') |
| 19 | - ->unique() |
|
| 20 | - ->notNull(); |
|
| 19 | + ->unique() |
|
| 20 | + ->notNull(); |
|
| 21 | 21 | |
| 22 | 22 | $table->datetime('expire_at') |
| 23 | - ->notNull(); |
|
| 23 | + ->notNull(); |
|
| 24 | 24 | |
| 25 | 25 | $table->integer('user_id') |
| 26 | - ->description('The owner of the token') |
|
| 27 | - ->notNull(); |
|
| 26 | + ->description('The owner of the token') |
|
| 27 | + ->notNull(); |
|
| 28 | 28 | |
| 29 | 29 | $table->timestamps(); |
| 30 | 30 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | public function down(): void |
| 40 | 40 | { |
| 41 | - //Action when migrate down |
|
| 41 | + //Action when migrate down |
|
| 42 | 42 | $this->drop('tokens'); |
| 43 | 43 | } |
| 44 | 44 | } |