Skip to content

Commit

Permalink
mariadb: add an index to esong.hash_link
Browse files Browse the repository at this point in the history
  • Loading branch information
Wessie committed Mar 6, 2024
1 parent e5e7fb4 commit 320d992
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions migrations/mysql/0009_esong_hash_link_index.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- make all hash_links equal to the actual hash, nothing should be using this column yet so we
-- reset it for consistency sake
UPDATE esong SET esong.hash_link = esong.hash;
-- and then add an index to it
CREATE OR REPLACE INDEX esong_hash_link_index ON esong (hash_link);

0 comments on commit 320d992

Please sign in to comment.