diff --git a/CHANGELOG.md b/CHANGELOG.md index fc70afd..1e19853 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # CHANGELOG ## 1.1.5 - Work in progress + - Fix #211: Migration boolean default value set to FALSE instead 0 (Dezinger) - Fix #213: Migration sql syntax fix (Dezinger) - Ehn #131: 2FA libraries now optional (maxxer) - Ehn #187: Add GDPR features (Eseperio) 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 ea3f5eb..2cf6907 100644 --- a/src/User/Migration/m000000_000009_add_gdpr_consent_fields.php +++ b/src/User/Migration/m000000_000009_add_gdpr_consent_fields.php @@ -17,9 +17,9 @@ class m000000_000009_add_gdpr_consent_fields extends Migration { public function safeUp() { - $this->addColumn('{{%user}}', 'gdpr_consent', $this->boolean()->defaultValue(0)); + $this->addColumn('{{%user}}', 'gdpr_consent', $this->boolean()->defaultValue(false)); $this->addColumn('{{%user}}', 'gdpr_consent_date', $this->integer(11)->null()); - $this->addColumn('{{%user}}', 'gdpr_deleted', $this->boolean()->defaultValue(0)); + $this->addColumn('{{%user}}', 'gdpr_deleted', $this->boolean()->defaultValue(false)); } public function safeDown()