Fix migration for sqlite glitch

This commit is contained in:
Bubka 2022-04-01 17:42:09 +02:00
parent 0982a61aa0
commit 5503a3b827

View File

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