Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('user_socials', function (Blueprint $table) { |
||
17 | $table->increments('id'); |
||
18 | $table->integer('user_id')->unsigned(); |
||
19 | $table->string('provider'); |
||
20 | $table->string('social_id')->index(); |
||
21 | $table->string('email')->index()->nullable(); |
||
22 | $table->string('avatar')->nullable(); |
||
23 | $table->string('token'); |
||
24 | $table->string('refresh_token')->nullable(); |
||
25 | $table->integer('expires_in')->nullable(); |
||
26 | $table->timestamps(); |
||
27 | |||
28 | $table->foreign('user_id') |
||
29 | ->references('id') |
||
30 | ->on('users') |
||
31 | ->onDelete('cascade'); |
||
32 | }); |
||
33 | |||
34 | DB::statement('ALTER TABLE `users` MODIFY `password` VARCHAR(64);'); |
||
35 | } |
||
36 | |||
51 |