Skip to content

Commit

Permalink
fix: Remove value from monitored_job_meta index
Browse files Browse the repository at this point in the history
  • Loading branch information
owenconti committed Dec 15, 2021
1 parent 6d01e5e commit 08a7cca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/migrations/2021_12_07_025257_add_table_indexes.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class AddTableIndexes extends Migration
public function up()
{
Schema::table('monitored_job_meta', function (Blueprint $table) {
$table->index(['type', 'value', 'monitored_job_id']);
$table->index(['type', 'monitored_job_id']);
});
Schema::table('monitored_jobs', function (Blueprint $table) {
$table->index(['name']);
Expand All @@ -32,7 +32,7 @@ public function down()
$table->dropIndex(['name']);
});
Schema::table('monitored_job_meta', function (Blueprint $table) {
$table->dropIndex(['type', 'value', 'monitored_job_id']);
$table->dropIndex(['type', 'monitored_job_id']);
});
}
}

0 comments on commit 08a7cca

Please sign in to comment.