Skip to content

Commit

Permalink
fixing details
Browse files Browse the repository at this point in the history
  • Loading branch information
CarliPinell committed Nov 15, 2024
1 parent 2e08013 commit 4554dbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
return new class extends Migration {
/**
* Run the migrations.
*/
Expand All @@ -16,8 +15,6 @@ public function up(): void
$table->integer('task_id');
$table->json('data');
$table->timestamps();

$table->index('task_id', 'taskId');
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
return new class extends Migration {
public function up(): void
{
Schema::table('task_drafts', function (Blueprint $table) {
Expand All @@ -19,4 +18,4 @@ public function down(): void
$table->dropIndex('taskId');
});
}
};
};

0 comments on commit 4554dbd

Please sign in to comment.