From 328acd2e2279e5e66783ef2b48ecf0d46af7189b Mon Sep 17 00:00:00 2001 From: Administrator Date: Sun, 27 May 2018 00:23:37 +0200 Subject: [PATCH] Added GPDR migration --- .../m000000_000007_add_gdpr_consent_field.php | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/User/Migration/m000000_000007_add_gdpr_consent_field.php 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'); + } +}