Update mediainfo usage

This commit is contained in:
DariusIII
2024-03-29 14:41:56 +01:00
parent abeed40310
commit 48ff3684ea
7 changed files with 183 additions and 103 deletions
@@ -0,0 +1,32 @@
<?php
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::create('media_infos', function (Blueprint $table) {
$table->id();
$table->bigInteger('releases_id')->unsigned();
$table->string('movie_name')->nullable();
$table->string('file_name')->nullable();
$table->string('title')->nullable();
$table->string('unique_id')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('media_infos');
}
};
@@ -0,0 +1,31 @@
<?php
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('releaseextrafull', function (Blueprint $table) {
$table->drop();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('releaseextrafull', function (Blueprint $table) {
$table->id();
$table->bigInteger('releases_id')->unsigned();
$table->longText('mediainfo')->nullable();
$table->timestamps();
});
}
};
@@ -0,0 +1,31 @@
<?php
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('release_unique', function (Blueprint $table) {
$table->drop();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('release_unique', function (Blueprint $table) {
$table->id();
$table->bigInteger('releases_id')->unsigned();
$table->string('uniqueid', 255)->nullable();
$table->timestamps();
});
}
};