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();