feat: add version

This commit is contained in:
2026-06-24 18:10:30 +03:30
parent 40b7efac2f
commit 706b349130
4 changed files with 152 additions and 0 deletions
@@ -0,0 +1,27 @@
<?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::create('app_versions', function (Blueprint $table) {
$table->id();
$table->foreignId('image_id')->nullable()->constrained('images')->nullOnDelete();
$table->string('title');
$table->text('description')->nullable();
$table->string('version_name'); // e.g. "1.2.0"
$table->unsignedInteger('version_code'); // monotonic build number, e.g. 42
$table->string('link')->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('app_versions');
}
};