the RunwareAI Plugin is working now
This commit is contained in:
@@ -11,8 +11,11 @@ return new class extends Migration
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('styles', function (Blueprint $table) {
|
||||
$table->boolean('enabled')->default(true)->after('ai_model_id');
|
||||
Schema::create('settings', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('key')->unique();
|
||||
$table->text('value')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -21,8 +24,6 @@ return new class extends Migration
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('styles', function (Blueprint $table) {
|
||||
$table->dropColumn('enabled');
|
||||
});
|
||||
Schema::dropIfExists('settings');
|
||||
}
|
||||
};
|
||||
@@ -11,8 +11,8 @@ return new class extends Migration
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('styles', function (Blueprint $table) {
|
||||
$table->boolean('enabled')->default(true)->after('ai_model_id');
|
||||
Schema::table('ai_models', function (Blueprint $table) {
|
||||
$table->boolean('enabled')->default(true)->after('model_type');
|
||||
});
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ return new class extends Migration
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('styles', function (Blueprint $table) {
|
||||
Schema::table('ai_models', function (Blueprint $table) {
|
||||
$table->dropColumn('enabled');
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?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('images', function (Blueprint $table) {
|
||||
$table->unsignedBigInteger('original_image_id')->nullable()->after('id');
|
||||
$table->foreign('original_image_id')->references('id')->on('images')->onDelete('set null');
|
||||
$table->unsignedBigInteger('style_id')->nullable()->after('original_image_id');
|
||||
$table->foreign('style_id')->references('id')->on('styles')->onDelete('set null');
|
||||
$table->boolean('is_temp')->default(false)->after('style_id');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('images', function (Blueprint $table) {
|
||||
$table->dropForeign(['original_image_id']);
|
||||
$table->dropColumn('original_image_id');
|
||||
$table->dropForeign(['style_id']);
|
||||
$table->dropColumn('style_id');
|
||||
$table->dropColumn('is_temp');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user