mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
fix: Changed the collation of hash id columns so that casing is no longer ignored (#736)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user