Update
This commit is contained in:
@@ -34,8 +34,8 @@ public function up(): void
|
||||
|
||||
$table->foreignId('category_id')->nullable();
|
||||
$table->foreignId('user_id')->nullable();
|
||||
$table->foreignId('meme_id')->nullable();
|
||||
$table->foreignId('background_id')->nullable();
|
||||
$table->foreignId('meme_media_id')->nullable();
|
||||
$table->foreignId('background_media_id')->nullable();
|
||||
|
||||
$table->enum('status', ['pending', 'completed'])->default('pending');
|
||||
$table->text('prompt');
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
<?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('categories', function (Blueprint $table) {
|
||||
$table->integer('system_memes_generated_count')->default(0);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('categories', function (Blueprint $table) {
|
||||
$table->dropColumn('system_memes_generated_count');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user