Merge branch 'release/2.0.2'

This commit is contained in:
Bubka 2020-12-04 15:30:30 +01:00
commit 4a9f73f6a1
3 changed files with 45 additions and 1 deletions

View File

@ -1,5 +1,10 @@
# Change log
## [2.0.2] - 2020-12-04
### Fixed
- [issue #20](https://github.com/Bubka/2FAuth/issues/20) Issues using 'Protect sensible data'
## [2.0.1] - 2020-12-03
### Fixed

View File

@ -22,7 +22,7 @@
|
*/
'version' => '2.0.1',
'version' => '2.0.2',
/*
|--------------------------------------------------------------------------

View File

@ -0,0 +1,39 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AlterEncryptedColumnsToText extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if ('sqlite' !== config('database.default')) {
Schema::table('twofaccounts', function (Blueprint $table) {
$table->text('account')->change();
});
Schema::table('twofaccounts', function (Blueprint $table) {
$table->text('uri')->change();
});
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('twofaccounts', function (Blueprint $table) {
//
});
}
}