fix: Changed the collation of hash id columns so that casing is no longer ignored (#736)

This commit is contained in:
Mani
2024-08-29 03:14:10 +02:00
committed by GitHub
parent 6fd693189c
commit e4c924fdcb
2 changed files with 2 additions and 2 deletions
@@ -24,7 +24,7 @@ return new class extends Migration
$table->id(Playlist::ATTRIBUTE_ID);
$table->timestamps(6);
$table->softDeletes(BaseModel::ATTRIBUTE_DELETED_AT, 6);
$table->string(HasHashids::ATTRIBUTE_HASHID)->nullable();
$table->string(HasHashids::ATTRIBUTE_HASHID)->nullable()->collation('utf8mb4_bin');
$table->string(Playlist::ATTRIBUTE_NAME);
$table->integer(Playlist::ATTRIBUTE_VISIBILITY);
@@ -25,7 +25,7 @@ return new class extends Migration
$table->id(PlaylistTrack::ATTRIBUTE_ID);
$table->timestamps(6);
$table->softDeletes(BaseModel::ATTRIBUTE_DELETED_AT, 6);
$table->string(HasHashids::ATTRIBUTE_HASHID)->nullable();
$table->string(HasHashids::ATTRIBUTE_HASHID)->nullable()->collation('utf8mb4_bin');
$table->unsignedBigInteger(PlaylistTrack::ATTRIBUTE_PLAYLIST);
$table->foreign(PlaylistTrack::ATTRIBUTE_PLAYLIST)->references(Playlist::ATTRIBUTE_ID)->on(Playlist::TABLE)->cascadeOnDelete();