-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(deps): bump plank/laravel-mediable from 5.9.1 to 6.1.2 (#711)
* build(deps): bump plank/laravel-mediable from 5.9.1 to 6.1.2 Bumps [plank/laravel-mediable](https://github.com/plank/laravel-mediable) from 5.9.1 to 6.1.2. - [Release notes](https://github.com/plank/laravel-mediable/releases) - [Changelog](https://github.com/plank/laravel-mediable/blob/master/CHANGELOG.md) - [Commits](plank/laravel-mediable@5.9.1...6.1.2) --- updated-dependencies: - dependency-name: plank/laravel-mediable dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * wip * wip * wip --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andrei Ioniță <hi@andrei.io>
- Loading branch information
1 parent
a9ca975
commit 55d88fd
Showing
5 changed files
with
218 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
database/migrations/2024_05_13_175108_add_alt_to_media.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::table('media', function (Blueprint $table) { | ||
$table->text('alt')->nullable(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::table('media', function (Blueprint $table) { | ||
$table->dropColumn('alt'); | ||
}); | ||
} | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public function getConnection() | ||
{ | ||
return config('mediable.connection_name', parent::getConnection()); | ||
} | ||
}; |
22 changes: 22 additions & 0 deletions
22
database/migrations/2024_05_13_180708_make_directory_column_nullable_in_media_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::table('media', function (Blueprint $table) { | ||
$table->string('directory')->nullable()->change(); | ||
}); | ||
} | ||
}; |