Skip to content

Commit

Permalink
Merge pull request #4218 from Obi-Wana/update-mediainfo-to-longtext
Browse files Browse the repository at this point in the history
Change mediainfo to longtext
  • Loading branch information
HDVinnie authored Oct 10, 2024
2 parents 90382cc + 05b727f commit 2707081
Showing 1 changed file with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php

declare(strict_types=1);

/**
* NOTICE OF LICENSE.
*
* UNIT3D Community Edition is open-sourced software licensed under the GNU Affero General Public License v3.0
* The details is bundled with this project in the file LICENSE.txt.
*
* @project UNIT3D Community Edition
*
* @author HDVinnie <[email protected]>
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
*/

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class () extends Migration {
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('torrents', function (Blueprint $table): void {
$table->longText('mediainfo')->nullable()->change();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::table('torrents', function (Blueprint $table): void {
$table->text('mediainfo')->nullable()->change();
});
}
};

0 comments on commit 2707081

Please sign in to comment.