Files
cv-roberto/database/migrations/2025_06_18_195212_create_skills_table.php
Roberto Guagliardo 195f20bb69 style fixing
2025-07-09 02:37:23 +02:00

31 lines
680 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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::create('skills', function (Blueprint $table) {
$table->id();
$table->string('title');
$table->text('description')->nullable();
$table->unsignedTinyInteger('rating'); // 110
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('skills');
}
};