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