This commit is contained in:
ct
2025-06-18 13:43:42 +08:00
parent a40d81331c
commit 60236af762
5 changed files with 68 additions and 3 deletions

View File

@@ -0,0 +1,30 @@
<?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('meme_medias', function (Blueprint $table) {
$table->integer('media_width')->default(720);
$table->integer('media_height')->default(1280);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('meme_medias', function (Blueprint $table) {
$table->dropColumn('media_width');
$table->dropColumn('media_height');
});
}
};

View File

@@ -0,0 +1,30 @@
<?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('background_medias', function (Blueprint $table) {
$table->integer('media_width')->default(720);
$table->integer('media_height')->default(720);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('background_medias', function (Blueprint $table) {
$table->dropColumn('media_width');
$table->dropColumn('media_height');
});
}
};