mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-26 00:50:12 +01:00
Fix migration for sqlite glitch
This commit is contained in:
parent
0982a61aa0
commit
5503a3b827
@ -13,7 +13,9 @@ class AlterEncryptedColumnsToText extends Migration
|
|||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
if ('sqlite' !== config('database.default')) {
|
$driver = Schema::connection($this->getConnection())->getConnection()->getDriverName();
|
||||||
|
|
||||||
|
if ('sqlite' !== $driver) {
|
||||||
|
|
||||||
Schema::table('twofaccounts', function (Blueprint $table) {
|
Schema::table('twofaccounts', function (Blueprint $table) {
|
||||||
$table->text('account')->change();
|
$table->text('account')->change();
|
||||||
|
Loading…
Reference in New Issue
Block a user