#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

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