Blame view

migrations/m170607_102520_social_customer_modification.php 382 Bytes
f40d11e3   Yarik   Social auth + vie...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  <?php
      
      use yii\db\Migration;
      
      class m170607_102520_social_customer_modification extends Migration
      {
          public function safeUp()
          {
              $this->alterColumn('customer', 'email', 'DROP NOT NULL');
          }
          
          public function safeDown()
          {
              $this->alterColumn('customer', 'email', 'SET NOT NULL');
          }
      }