style(media): add void return on migration closures, drop noop ->after
This commit is contained in:
parent
99f1f7ed84
commit
5408ca7e27
1 changed files with 3 additions and 3 deletions
|
|
@ -10,14 +10,14 @@
|
|||
{
|
||||
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');
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue