diff --git a/database/migrations/2022_09_29_203332_create_playlists_table.php b/database/migrations/2022_09_29_203332_create_playlists_table.php index c30eef73d..8e3bc25c5 100644 --- a/database/migrations/2022_09_29_203332_create_playlists_table.php +++ b/database/migrations/2022_09_29_203332_create_playlists_table.php @@ -24,7 +24,7 @@ public function up(): void $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); diff --git a/database/migrations/2022_09_29_204718_create_playlist_tracks_table.php b/database/migrations/2022_09_29_204718_create_playlist_tracks_table.php index 6638b7db9..01946c4c1 100644 --- a/database/migrations/2022_09_29_204718_create_playlist_tracks_table.php +++ b/database/migrations/2022_09_29_204718_create_playlist_tracks_table.php @@ -25,7 +25,7 @@ public function up(): void $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();