diff --git a/database/migrations/2025_07_31_164635_change_hashtags_collation.php b/database/migrations/2025_07_31_164635_change_hashtags_collation.php new file mode 100644 index 000000000..bd621ccfa --- /dev/null +++ b/database/migrations/2025_07_31_164635_change_hashtags_collation.php @@ -0,0 +1,36 @@ +string('name')->collation('utf8mb4_unicode_520_ci')->change(); + $table->string('slug')->collation('utf8mb4_unicode_520_ci')->change(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + if (config('database.default') === 'pgsql') + return; + + Schema::table('hashtags', function (Blueprint $table) { + $table->string('name')->change(); + $table->string('slug')->change(); + }); + } +};