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

@ -1,5 +1,14 @@
<?php
/*
* This file is part of the 2amigos/yii2-usuario project.
*
* (c) 2amigOS! <http://2amigos.us/>
* @author E. Alamo <erosdelalamo@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Da\User\Form;

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