#211 Migration boolean default value set to FALSE instead 0 (#212)

This commit is contained in:
Aleksey Kazakov
2018-07-28 11:01:40 +03:00
committed by Lorenzo Milesi
parent ebf2e53d2c
commit 09b8b69811
2 changed files with 3 additions and 2 deletions

View File

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

View File

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