feat(ai): finalize AI magic edits epic rollout and operations
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('ai_styles', function (Blueprint $table) {
|
||||
$table->unsignedInteger('version')->default(1)->after('name');
|
||||
$table->index(['is_active', 'version']);
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('ai_styles', function (Blueprint $table) {
|
||||
$table->dropIndex(['is_active', 'version']);
|
||||
$table->dropColumn('version');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user