Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 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('avatar')->nullable(); |
||
22 | $table->timestamps(); |
||
23 | |||
24 | $table->foreign('user_id') |
||
25 | ->references('id') |
||
26 | ->on('users') |
||
27 | ->onDelete('cascade'); |
||
28 | }); |
||
29 | |||
30 | DB::statement('ALTER TABLE `users` MODIFY `password` VARCHAR(64);'); |
||
31 | } |
||
32 | |||
47 |