Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function up() |
||
16 | { |
||
17 | $this->getSchema()->table('users', function($table){ |
||
18 | $table->string('approve_token', 128)->nullable()->default(null)->change(); |
||
19 | }); |
||
20 | // set approve_token = null where it like '0' str or '' |
||
21 | \Apps\ActiveRecord\User::where('approve_token', '=', '0') |
||
22 | ->update('approve_token', null); |
||
23 | } |
||
41 | } |