From 5503a3b827e253d2652c12ad3d85748203c39f36 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Fri, 1 Apr 2022 17:42:09 +0200 Subject: [PATCH] Fix migration for sqlite glitch --- .../2020_12_04_073604_alter_encrypted_columns_to_text.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/database/migrations/2020_12_04_073604_alter_encrypted_columns_to_text.php b/database/migrations/2020_12_04_073604_alter_encrypted_columns_to_text.php index 5a29e1ce..a01cbc58 100644 --- a/database/migrations/2020_12_04_073604_alter_encrypted_columns_to_text.php +++ b/database/migrations/2020_12_04_073604_alter_encrypted_columns_to_text.php @@ -13,7 +13,9 @@ class AlterEncryptedColumnsToText extends Migration */ public function up() { - if ('sqlite' !== config('database.default')) { + $driver = Schema::connection($this->getConnection())->getConnection()->getDriverName(); + + if ('sqlite' !== $driver) { Schema::table('twofaccounts', function (Blueprint $table) { $table->text('account')->change();