Skip to content

Commit

Permalink
fix: Changed the collation of hash id columns so that casing is no lo…
Browse files Browse the repository at this point in the history
…nger ignored (#736)
  • Loading branch information
Maniload authored Aug 29, 2024
1 parent 6fd6931 commit e4c924f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e4c924f

Please sign in to comment.