pedi3/database/migrations/2024_03_12_201127_create_ca...

30 lines
628 B
PHP
Raw Normal View History

2024-03-12 17:17:42 -03:00
<?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('caracteristicas', function (Blueprint $table) {
$table->id();
$table->string('name', 100);
2024-03-12 22:27:02 -03:00
$table->string('key', 100);
2024-03-12 17:17:42 -03:00
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('caracteristicas');
}
};