diff --git a/src/User/Migration/m000000_000007_add_gdpr_consent_field.php b/src/User/Migration/m000000_000007_add_gdpr_consent_field.php new file mode 100644 index 0000000..8d06931 --- /dev/null +++ b/src/User/Migration/m000000_000007_add_gdpr_consent_field.php @@ -0,0 +1,27 @@ + + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + +namespace Da\User\Migration; + +use yii\db\Migration; + +class m000000_000007_add_gdpr_consent_field extends Migration +{ + public function safeUp() + { + $this->addColumn('{{%user}}', 'gdpr_consent', $this->boolean()); + } + + public function safeDown() + { + $this->dropColumn('{{%user}}', 'gdpr_consent'); + } +}