diff --git a/migrations/Version20250413133131.php b/migrations/Version20250413133131.php index 4e805db07..19186aef2 100644 --- a/migrations/Version20250413133131.php +++ b/migrations/Version20250413133131.php @@ -20,7 +20,7 @@ final class Version20250413133131 extends WallabagMigration $userTable->addColumn('googleauthenticator', 'boolean', [ 'default' => false, - 'notnull' => false, + 'notnull' => true, ]); } diff --git a/src/Entity/User.php b/src/Entity/User.php index 98d02e63e..b3117762d 100644 --- a/src/Entity/User.php +++ b/src/Entity/User.php @@ -148,7 +148,7 @@ class User extends BaseUser implements EmailTwoFactorInterface, GoogleTwoFactorI private $googleAuthenticatorSecret; #[ORM\Column(name: 'googleAuthenticator', type: 'boolean')] - private $googleAuthenticator; + private $googleAuthenticator = false; /** * @var array