@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | public function up(): void |
| 12 | 12 | { |
| 13 | - Schema::create('comment_likes', function (Blueprint $table) { |
|
| 13 | + Schema::create('comment_likes', function(Blueprint $table) { |
|
| 14 | 14 | $table->id(); |
| 15 | 15 | $table->foreignId('user_id')->nullable(); |
| 16 | 16 | $table->foreignId('comment_id'); |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | $table->timestamps(); |
| 20 | 20 | }); |
| 21 | 21 | |
| 22 | - Schema::table('comment_likes', function (Blueprint $table) { |
|
| 22 | + Schema::table('comment_likes', function(Blueprint $table) { |
|
| 23 | 23 | if (config('commentify.user_uuid')) { |
| 24 | 24 | $table->foreignUuid('user_id')->nullable()->change(); |
| 25 | 25 | } |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | public function up(): void |
| 12 | 12 | { |
| 13 | - Schema::create('comments', function (Blueprint $table) { |
|
| 13 | + Schema::create('comments', function(Blueprint $table) { |
|
| 14 | 14 | $table->id(); |
| 15 | 15 | $table->foreignId('user_id')->constrained()->onDelete('cascade'); |
| 16 | 16 | $table->foreignId('parent_id')->nullable()->constrained('comments')->onDelete('cascade'); |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | $table->timestamps(); |
| 21 | 21 | }); |
| 22 | 22 | |
| 23 | - Schema::table('comments', function (Blueprint $table) { |
|
| 23 | + Schema::table('comments', function(Blueprint $table) { |
|
| 24 | 24 | if (config('commentify.user_uuid')) { |
| 25 | 25 | $table->foreignUuid('user_id')->constrained()->onDelete('cascade')->change(); |
| 26 | 26 | } |