From ef4a1de6f46136e6dca3daadb6756810299a39a7 Mon Sep 17 00:00:00 2001 From: Lorenzo Milesi Date: Fri, 13 Jul 2018 09:33:15 +0200 Subject: [PATCH] Minor fixes to GDPR files --- src/User/Form/GdprDeleteForm.php | 11 ++++++++++- .../m000000_000009_add_gdpr_consent_fields.php | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/User/Form/GdprDeleteForm.php b/src/User/Form/GdprDeleteForm.php index c7f9ee4..926c767 100644 --- a/src/User/Form/GdprDeleteForm.php +++ b/src/User/Form/GdprDeleteForm.php @@ -1,5 +1,14 @@ + * @author E. Alamo + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ namespace Da\User\Form; @@ -74,4 +83,4 @@ class GdprDeleteForm extends Model } -} \ No newline at end of file +} diff --git a/src/User/Migration/m000000_000009_add_gdpr_consent_fields.php b/src/User/Migration/m000000_000009_add_gdpr_consent_fields.php index ea8c47c..ea3f5eb 100644 --- a/src/User/Migration/m000000_000009_add_gdpr_consent_fields.php +++ b/src/User/Migration/m000000_000009_add_gdpr_consent_fields.php @@ -17,8 +17,8 @@ class m000000_000009_add_gdpr_consent_fields extends Migration { public function safeUp() { - $this->addColumn('{{%user}}', 'gdpr_consent', $this->boolean()); - $this->addColumn('{{%user}}', 'gdpr_consent_date', $this->integer(11)); + $this->addColumn('{{%user}}', 'gdpr_consent', $this->boolean()->defaultValue(0)); + $this->addColumn('{{%user}}', 'gdpr_consent_date', $this->integer(11)->null()); $this->addColumn('{{%user}}', 'gdpr_deleted', $this->boolean()->defaultValue(0)); }