Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

style(media): add void return on migration closures, drop noop ->after

Paulo Castellano5408ca7e274b
diff --git a/database/migrations/2026_05_15_190137_add_upload_token_to_media_table.php b/database/migrations/2026_05_15_190137_add_upload_token_to_media_table.php
index 925b4e5e6..220565a9e 100644
--- a/database/migrations/2026_05_15_190137_add_upload_token_to_media_table.php
+++ b/database/migrations/2026_05_15_190137_add_upload_token_to_media_table.php
@@ -10,14 +10,14 @@ return new class extends Migration
{
public function up(): void
{
- Schema::table('medias', function (Blueprint $table) {
- $table->uuid('upload_token')->nullable()->unique()->after('id');
+ Schema::table('medias', function (Blueprint $table): void {
+ $table->uuid('upload_token')->nullable()->unique();
});
}
public function down(): void
{
- Schema::table('medias', function (Blueprint $table) {
+ Schema::table('medias', function (Blueprint $table): void {
$table->dropUnique(['upload_token']);
$table->dropColumn('upload_token');
});