Minor fixes to GDPR files

This commit is contained in:
Lorenzo Milesi
2018-07-13 09:33:15 +02:00
parent fccfb5b3a9
commit ef4a1de6f4
2 changed files with 12 additions and 3 deletions

View File

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