@@ -6,30 +6,30 @@ |
||
| 6 | 6 | |
| 7 | 7 | class CreateRevolutTokensTable extends Migration |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * Run the migrations. |
|
| 11 | - * |
|
| 12 | - * @return void |
|
| 13 | - */ |
|
| 14 | - public function up() |
|
| 15 | - { |
|
| 16 | - Schema::create(config('revolut.tokens_table'), function (Blueprint $table) { |
|
| 9 | + /** |
|
| 10 | + * Run the migrations. |
|
| 11 | + * |
|
| 12 | + * @return void |
|
| 13 | + */ |
|
| 14 | + public function up() |
|
| 15 | + { |
|
| 16 | + Schema::create(config('revolut.tokens_table'), function (Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->string('type'); |
| 19 | - $table->mediumText('value'); |
|
| 20 | - $table->boolean('is_encrypted')->default(false); |
|
| 19 | + $table->mediumText('value'); |
|
| 20 | + $table->boolean('is_encrypted')->default(false); |
|
| 21 | 21 | $table->timestamp('expires_at')->nullable(); |
| 22 | - $table->timestamp('created_at')->useCurrent(); |
|
| 23 | - }); |
|
| 24 | - } |
|
| 22 | + $table->timestamp('created_at')->useCurrent(); |
|
| 23 | + }); |
|
| 24 | + } |
|
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * Reverse the migrations. |
|
| 28 | - * |
|
| 29 | - * @return void |
|
| 30 | - */ |
|
| 31 | - public function down() |
|
| 32 | - { |
|
| 33 | - Schema::dropIfExists(config('revolut.tokens_table')); |
|
| 34 | - } |
|
| 26 | + /** |
|
| 27 | + * Reverse the migrations. |
|
| 28 | + * |
|
| 29 | + * @return void |
|
| 30 | + */ |
|
| 31 | + public function down() |
|
| 32 | + { |
|
| 33 | + Schema::dropIfExists(config('revolut.tokens_table')); |
|
| 34 | + } |
|
| 35 | 35 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create(config('revolut.tokens_table'), function (Blueprint $table) { |
|
| 16 | + Schema::create(config('revolut.tokens_table'), function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->string('type'); |
| 19 | 19 | $table->mediumText('value'); |