Skip to content

Commit

Permalink
truncate column for index -- should still be long enough for uniqueness
Browse files Browse the repository at this point in the history
  • Loading branch information
yordadev committed Aug 20, 2024
1 parent a869c94 commit 1d80cf6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
public function up()
{
Schema::table('short_url_tracings', function (Blueprint $table) {
$table->index(['utm_source', 'utm_medium', 'utm_campaign', 'utm_content', 'utm_term'], 'utm_composite_index');
$table->index(['utm_source(100)', 'utm_medium(100)', 'utm_campaign(100)', 'utm_content(100)', 'utm_term(100)'], 'utm_composite_index');
});
}
};

0 comments on commit 1d80cf6

Please sign in to comment.